public void CDContentDifferentEqualityTest() { CD <String> a = new CD <string>( "12345", "1.2.3.4.5.6", "Dummy Code System", "2011" ), b = new CD <String>( "12345", "1.2.3.4.5.7", "Dummy Code System", "2011" ); Assert.IsFalse(a.Equals(b)); b.Code = "12346"; b.CodeSystem = "1.2.3.4.5"; Assert.IsFalse(a.Equals(b)); }
public void CDTypeMismatchEqualityTest() { CD <NullFlavor> a = new CD <NullFlavor>( NullFlavor.NotApplicable, "1.2.3.4.5.6", "Dummy Code System", "2011" ); Assert.IsFalse(a.Equals("12345")); }
public void CDContentSameEqualityTest() { CD <String> a = new CD <string>( "12345", "1.2.3.4.5.6", "Dummy Code System", "2011" ), b = new CD <String>( "12345", "1.2.3.4.5.6", "Dummy Code System", "2011" ); Assert.IsTrue(a.Equals(b)); Assert.IsTrue(b.Equals(a)); }
public void CDContentDifferentEqualityTest() { CD<String> a = new CD<string>( "12345", "1.2.3.4.5.6", "Dummy Code System", "2011" ), b = new CD<String>( "12345", "1.2.3.4.5.7", "Dummy Code System", "2011" ); Assert.IsFalse(a.Equals(b)); b.Code = "12346"; b.CodeSystem = "1.2.3.4.5"; Assert.IsFalse(a.Equals(b)); }
public void CDContentSameEqualityTest() { CD<String> a = new CD<string>( "12345", "1.2.3.4.5.6", "Dummy Code System", "2011" ), b = new CD<String>( "12345","1.2.3.4.5.6", "Dummy Code System", "2011" ); Assert.IsTrue(a.Equals(b)); Assert.IsTrue(b.Equals(a)); }
public void CDTypeMismatchEqualityTest() { CD<NullFlavor> a = new CD<NullFlavor>( NullFlavor.NotApplicable, "1.2.3.4.5.6", "Dummy Code System", "2011" ); Assert.IsFalse(a.Equals("12345")); }