@@ -7,11 +7,11 @@ namespace LibGit2Sharp.Tests
7
7
[ TestFixture ]
8
8
public class ObjectIdFixture
9
9
{
10
- [ TestCase ( "Dummy" , typeof ( ArgumentException ) ) ]
11
- [ TestCase ( "" , typeof ( ArgumentException ) ) ]
12
- [ TestCase ( "8e" , typeof ( ArgumentException ) ) ]
13
- [ TestCase ( null , typeof ( ArgumentNullException ) ) ]
14
- [ TestCase ( "ce08fe4884650f067bd5703b6a59a8b3b3c99a09dd" , typeof ( ArgumentException ) ) ]
10
+ [ TestCase ( "Dummy" , typeof ( ArgumentException ) ) ]
11
+ [ TestCase ( "" , typeof ( ArgumentException ) ) ]
12
+ [ TestCase ( "8e" , typeof ( ArgumentException ) ) ]
13
+ [ TestCase ( null , typeof ( ArgumentNullException ) ) ]
14
+ [ TestCase ( "ce08fe4884650f067bd5703b6a59a8b3b3c99a09dd" , typeof ( ArgumentException ) ) ]
15
15
public void PreventsFromBuildingWithAnInvalidSha ( string malformedSha , Type expectedExceptionType )
16
16
{
17
17
Assert . Throws ( expectedExceptionType , ( ) => new ObjectId ( malformedSha ) ) ;
@@ -20,7 +20,7 @@ public void PreventsFromBuildingWithAnInvalidSha(string malformedSha, Type expec
20
20
[ Test ]
21
21
public void CanConvertOidToSha ( )
22
22
{
23
- var bytes = new byte [ ] { 206 , 8 , 254 , 72 , 132 , 101 , 15 , 6 , 123 , 213 , 112 , 59 , 106 , 89 , 168 , 179 , 179 , 201 , 154 , 9 } ;
23
+ var bytes = new byte [ ] { 206 , 8 , 254 , 72 , 132 , 101 , 15 , 6 , 123 , 213 , 112 , 59 , 106 , 89 , 168 , 179 , 179 , 201 , 154 , 9 } ;
24
24
25
25
var id = new ObjectId ( bytes ) ;
26
26
@@ -32,13 +32,13 @@ public void CanConvertOidToSha()
32
32
public void CanConvertShaToOid ( )
33
33
{
34
34
var id = new ObjectId ( "ce08fe4884650f067bd5703b6a59a8b3b3c99a09" ) ;
35
- id . RawId . ShouldEqual ( new byte [ ] { 206 , 8 , 254 , 72 , 132 , 101 , 15 , 6 , 123 , 213 , 112 , 59 , 106 , 89 , 168 , 179 , 179 , 201 , 154 , 9 } ) ;
35
+ id . RawId . ShouldEqual ( new byte [ ] { 206 , 8 , 254 , 72 , 132 , 101 , 15 , 6 , 123 , 213 , 112 , 59 , 106 , 89 , 168 , 179 , 179 , 201 , 154 , 9 } ) ;
36
36
}
37
37
38
38
[ Test ]
39
39
public void CreatingObjectIdWithWrongNumberOfBytesThrows ( )
40
40
{
41
- var bytes = new byte [ ] { 206 , 8 , 254 , 72 , 132 , 101 , 15 , 6 , 123 , 213 , 112 , 59 , 106 , 89 , 168 , 179 , 179 , 201 , 154 } ;
41
+ var bytes = new byte [ ] { 206 , 8 , 254 , 72 , 132 , 101 , 15 , 6 , 123 , 213 , 112 , 59 , 106 , 89 , 168 , 179 , 179 , 201 , 154 } ;
42
42
43
43
Assert . Throws < ArgumentException > ( ( ) => { new ObjectId ( bytes ) ; } ) ;
44
44
}
0 commit comments