예제 #1
0
        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));
        }
예제 #2
0
        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"));
        }
예제 #3
0
        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));
        }
예제 #4
0
파일: CDTest.cs 프로젝트: oneminot/everest
        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));


        }
예제 #5
0
파일: CDTest.cs 프로젝트: oneminot/everest
 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));
 }
예제 #6
0
파일: CDTest.cs 프로젝트: oneminot/everest
 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"));
 }