@@ -27,6 +27,16 @@ class given_a_managed_x64_algorithm_output_stream
27
27
It should_have_computed_correct_hash = ( ) => VerificationHash . ShouldEqual ( Expectation . Result ) ;
28
28
}
29
29
30
+ [ Subject ( "Murmur128" ) ]
31
+ class given_a_managed_x64_algorithm_input_stream
32
+ {
33
+ protected static readonly HashExpection Expectation = new HashExpection ( 128 , 0x6384BA69 ) ;
34
+ protected static uint VerificationHash ;
35
+ Establish context = ( ) => VerificationHash = 0 ;
36
+ Because of = ( ) => VerificationHash = HashVerifier . ComputeVerificationHashInputStream ( Expectation . Bits , ( stream , seed ) => new MurmurInputStream ( stream , seed , true , AlgorithmType . Murmur128 , AlgorithmPreference . X64 ) ) ;
37
+ It should_have_computed_correct_hash = ( ) => VerificationHash . ShouldEqual ( Expectation . Result ) ;
38
+ }
39
+
30
40
[ Subject ( "Murmur128" ) ]
31
41
class given_an_unmanaged_x64_algorithm
32
42
{
@@ -47,6 +57,16 @@ class given_an_unmanaged_x64_algorithm_output_stream
47
57
It should_have_computed_correct_hash = ( ) => VerificationHash . ShouldEqual ( Expectation . Result ) ;
48
58
}
49
59
60
+ [ Subject ( "Murmur128" ) ]
61
+ class given_an_unmanaged_x64_algorithm_input_stream
62
+ {
63
+ protected static readonly HashExpection Expectation = new HashExpection ( 128 , 0x6384BA69 ) ;
64
+ protected static uint VerificationHash ;
65
+ Establish context = ( ) => VerificationHash = 0 ;
66
+ Because of = ( ) => VerificationHash = HashVerifier . ComputeVerificationHashInputStream ( Expectation . Bits , ( stream , seed ) => new MurmurInputStream ( stream , seed , false , AlgorithmType . Murmur128 , AlgorithmPreference . X64 ) ) ;
67
+ It should_have_computed_correct_hash = ( ) => VerificationHash . ShouldEqual ( Expectation . Result ) ;
68
+ }
69
+
50
70
[ Subject ( "Murmur128" ) ]
51
71
class given_a_managed_x86_algorithm
52
72
{
@@ -67,6 +87,16 @@ class given_a_managed_x86_algorithm_output_stream
67
87
It should_have_computed_correct_hash = ( ) => VerificationHash . ShouldEqual ( Expectation . Result ) ;
68
88
}
69
89
90
+ [ Subject ( "Murmur128" ) ]
91
+ class given_a_managed_x86_algorithm_input_stream
92
+ {
93
+ protected static readonly HashExpection Expectation = new HashExpection ( 128 , 0xB3ECE62A ) ;
94
+ protected static uint VerificationHash ;
95
+ Establish context = ( ) => VerificationHash = 0 ;
96
+ Because of = ( ) => VerificationHash = HashVerifier . ComputeVerificationHashInputStream ( Expectation . Bits , ( stream , seed ) => new MurmurInputStream ( stream , seed , true , AlgorithmType . Murmur128 , AlgorithmPreference . X86 ) ) ;
97
+ It should_have_computed_correct_hash = ( ) => VerificationHash . ShouldEqual ( Expectation . Result ) ;
98
+ }
99
+
70
100
[ Subject ( "Murmur128" ) ]
71
101
class given_an_unmanaged_x86_algorithm
72
102
{
@@ -87,6 +117,16 @@ class given_an_unmanaged_x86_algorithm_output_stream
87
117
It should_have_computed_correct_hash = ( ) => VerificationHash . ShouldEqual ( Expectation . Result ) ;
88
118
}
89
119
120
+ [ Subject ( "Murmur128" ) ]
121
+ class given_an_unmanaged_x86_algorithm_input_stream
122
+ {
123
+ protected static readonly HashExpection Expectation = new HashExpection ( 128 , 0xB3ECE62A ) ;
124
+ protected static uint VerificationHash ;
125
+ Establish context = ( ) => VerificationHash = 0 ;
126
+ Because of = ( ) => VerificationHash = HashVerifier . ComputeVerificationHashInputStream ( Expectation . Bits , ( stream , seed ) => new MurmurInputStream ( stream , seed , false , AlgorithmType . Murmur128 , AlgorithmPreference . X86 ) ) ;
127
+ It should_have_computed_correct_hash = ( ) => VerificationHash . ShouldEqual ( Expectation . Result ) ;
128
+ }
129
+
90
130
[ Subject ( "Murmur128" ) ]
91
131
class given_a_managed_and_unmanaged_algorithm
92
132
{
0 commit comments