예제 #1
0
        public void AnonAssert_AreEqual_FailsWhenActualValueIsMissing()
        {
            var expected = new
            {
                Source = "http://www.davidmuto.com/",
                Prop1  = 1
            };

            AnonAssert.AreEqual(expected, this._subject);
        }
예제 #2
0
        public void AnonAssert_AreEqual_FailsWhenSuppliedValueIsMissing()
        {
            var expected = new
            {
                Source   = "http://www.davidmuto.com/",
                NotFound = "Some Value"
            };

            AnonAssert.AreEqual(expected, this._subject);
        }
예제 #3
0
        public void AnonAssert_AreEqual_ValidatesExpectedAndActualValues()
        {
            var expected = new
            {
                Source = "http://www.davidmuto.com/",
                Prop1  = 1,
                Prop2  = 2.0
            };

            AnonAssert.AreEqual(expected, this._subject);
        }
예제 #4
0
        public void AnonAssert_AreEqual_FailsWhenActualValueIsDifferent()
        {
            var expected = new
            {
                Source = "http://www.davidmuto.com/",
                Prop1  = 1,
                Prop2  = 2 /* Not a double this time... */
            };

            AnonAssert.AreEqual(expected, this._subject);
        }