Esempio n. 1
0
            public void Returns_False_For_String()
            {
                var myEvaluator = new MoqabilityEvaluator();

                Assert.IsFalse(myEvaluator.IsMoqable <string>());
            }
Esempio n. 2
0
            public void Returns_True_For_Type_With_Default_Constructor()
            {
                var myEvaluator = new MoqabilityEvaluator();

                Assert.IsTrue(myEvaluator.IsMoqable <Moqable>());
            }
Esempio n. 3
0
            public void Returns_True_For_Reference_Type_With_No_Empty_Constructor()
            {
                var myEvaluator = new MoqabilityEvaluator();

                Assert.IsTrue(myEvaluator.IsMoqable <NoDefaultXtor>());
            }
Esempio n. 4
0
            public void Returns_True_For_Interface()
            {
                var myEvaluator = new MoqabilityEvaluator();

                Assert.IsTrue(myEvaluator.IsMoqable <IBasicMath>());
            }
Esempio n. 5
0
            public void Returns_False_For_ValueType()
            {
                var myEvaluator = new MoqabilityEvaluator();

                Assert.IsFalse(myEvaluator.IsMoqable <int>());
            }
            public void Returns_True_For_Type_With_Default_Constructor()
            {
                var myEvaluator = new MoqabilityEvaluator();

                Assert.IsTrue(myEvaluator.IsMoqable<Moqable>());
            }
            public void Returns_True_For_Reference_Type_With_No_Empty_Constructor()
            {
                var myEvaluator = new MoqabilityEvaluator();

                Assert.IsTrue(myEvaluator.IsMoqable<NoDefaultXtor>());
            }
            public void Returns_True_For_Interface()
            {
                var myEvaluator = new MoqabilityEvaluator();

                Assert.IsTrue(myEvaluator.IsMoqable<IBasicMath>());
            }
            public void Returns_False_For_ValueType()
            {
                var myEvaluator = new MoqabilityEvaluator();

                Assert.IsFalse(myEvaluator.IsMoqable<int>());
            }
            public void Returns_False_For_String()
            {
                var myEvaluator = new MoqabilityEvaluator();

                Assert.IsFalse(myEvaluator.IsMoqable<string>());
            }