Пример #1
0
        public void ConvertToWorksForDowncast()
        {
            var result   = LanguagePrimitives.ConvertTo(new TestChild("foo", "bar"), typeof(TestParent));
            var expected = new TestParent("foo");

            Assert.AreEqual(expected, result);
        }
Пример #2
0
 public bool EqualsIgnoreCase(TestParent other)
 {
     return String.Compare(_msg, other._msg, true) == 0;
 }
Пример #3
0
 public void ConvertToWorksForDowncast()
 {
     var result = LanguagePrimitives.ConvertTo(new TestChild("foo", "bar"), typeof(TestParent));
     var expected = new TestParent("foo");
     Assert.AreEqual(expected, result);
 }
Пример #4
0
 public bool EqualsIgnoreCase(TestParent other)
 {
     return(String.Compare(_msg, other._msg, true) == 0);
 }