示例#1
0
 public void AssertPatched_EquivalentNotStrictNestedArrays_Passes()
 {
     AssertPatched.Equal(
         new[] { new string[] { "Foo" }, new string[] { "Bar" } },
         new[] { new object[] { "Foo" }, new object[] { "Bar" } },
         false);
 }
示例#2
0
 public void AssertPatched_EquivalentStrictNestedArrays_ThrowsEqualException()
 {
     Assert.Throws <EqualException>(
         delegate()
     {
         AssertPatched.Equal(
             new[] { new string[] { "Foo" }, new string[] { "Bar" } },
             new[] { new object[] { "Foo" }, new object[] { "Bar" } },
             true);
     });
 }
示例#3
0
        public void AssertPatched_EquivalentNotStrictDictionaries_Passes()
        {
            var x = new Dictionary <string, object>
            {
                { "Key", "Value" }
            };

            dynamic y = new System.Dynamic.ExpandoObject();

            y.Key = "Value";

            AssertPatched.Equal <IDictionary <string, object> >(x, y, false);
        }
示例#4
0
        public void AssertPatched_EquivalentStrictDictionaries_ThrowsEqualException()
        {
            var x = new Dictionary <string, object>
            {
                { "Key", "Value" }
            };

            dynamic y = new System.Dynamic.ExpandoObject();

            y.Key = "Value";

            Assert.Throws <EqualException>(
                delegate()
            {
                AssertPatched.Equal <IDictionary <string, object> >(x, y, true);
            });
        }
示例#5
0
 public void AssertPatched_ExactlyEqualNestedArrays_Passes()
 {
     AssertPatched.Equal(
         new[] { new[] { "Foo" }, new[] { "Bar" } },
         new[] { new[] { "Foo" }, new[] { "Bar" } });
 }