@@ -6,27 +6,27 @@ public class TestEntity
66 [ TestMethod ]
77 public void TestToString ( )
88 {
9- MasaEntity entity = new ( ) { Id = Guid . Empty } ;
9+ MasaEntity entity = new ( ) { Id = Guid . Empty } ;
1010 Assert . AreEqual ( "MasaEntity:Id=00000000-0000-0000-0000-000000000000" , entity . ToString ( ) ) ;
1111 }
1212
1313 [ TestMethod ]
1414 public void TestEquals ( )
1515 {
1616 var id = Guid . NewGuid ( ) ;
17- MasaEntity x = new ( ) { Id = id } ;
18- MasaEntity y = new ( ) { Id = id } ;
17+ MasaEntity x = new ( ) { Id = id } ;
18+ MasaEntity y = new ( ) { Id = id } ;
1919
2020 Assert . IsTrue ( x . Equals ( y ) ) ;
21- Assert . IsTrue ( x . Equals ( ( object ) y ) ) ;
21+ Assert . IsTrue ( x . Equals ( ( object ) y ) ) ;
2222 }
2323
2424 [ TestMethod ]
2525 public void TestGetHashCode ( )
2626 {
2727 var id = Guid . NewGuid ( ) ;
28- MasaEntity x = new ( ) { Id = id } ;
29- MasaEntity y = new ( ) { Id = id } ;
28+ MasaEntity x = new ( ) { Id = id } ;
29+ MasaEntity y = new ( ) { Id = id } ;
3030
3131 Assert . AreEqual ( x . GetHashCode ( ) , y . GetHashCode ( ) ) ;
3232 }
@@ -35,9 +35,9 @@ public void TestGetHashCode()
3535 public void TestOperator ( )
3636 {
3737 var id = Guid . NewGuid ( ) ;
38- MasaEntity x = new ( ) { Id = id } ;
39- MasaEntity y = new ( ) { Id = id } ;
40- MasaEntity z = new ( ) { Id = Guid . NewGuid ( ) } ;
38+ MasaEntity x = new ( ) { Id = id } ;
39+ MasaEntity y = new ( ) { Id = id } ;
40+ MasaEntity z = new ( ) { Id = Guid . NewGuid ( ) } ;
4141
4242 Assert . IsTrue ( x == y ) ;
4343 Assert . IsTrue ( x != z ) ;
@@ -47,9 +47,11 @@ public void TestOperator()
4747 Assert . IsTrue ( null == m ) ;
4848 Assert . IsFalse ( null != m ) ;
4949 Assert . IsFalse ( m != null ) ;
50+ Assert . IsTrue ( x != null ) ;
51+ Assert . IsTrue ( null != x ) ;
5052 }
5153
5254 public class MasaEntity : Entity < Guid >
5355 {
5456 }
55- }
57+ }
0 commit comments