예제 #1
0
            public void It_creates_mock_objects_for_ctor_sealed_parameters_when_instances_provided()
            {
                mocker.Use("Hello World");
                WithSealedParams instance = mocker.CreateInstance <WithSealedParams>();

                instance.Sealed.ShouldNotBeNull().ShouldEqual("Hello World");
            }
예제 #2
0
            public void It_creates_mock_objects_for_ctor_sealed_parameters_when_instances_provided()
            {
                mocker.Use("Hello World");
                WithSealedParams instance = mocker.CreateInstance <WithSealedParams>();

                Assert.AreEqual("Hello World", instance.Sealed);
            }