public void Should_inject_instances(
     int number,
     AbstractType foo
     )
 {
     number.Should().Be(1);
     foo.Should().NotBeNull();
 }
 public void Should_inject_mocks_and_instances(
     int number,
     AbstractType foo1,
     IInterface foo2
     )
 {
     number.Should().BePositive();
     foo1.Should().NotBeNull();
     foo2.Should().NotBeNull();
 }
Esempio n. 3
0
        public void Should_instantiate_all_arguments(
#pragma warning disable xUnit1026 // Theory methods should use all of their parameters
            double d,
#pragma warning restore xUnit1026
            string s,
            IInterface i,
            AbstractType a,
            ConcreteType c)
        {
            // nothing to do with d
            s.Should().NotBeNull();
            i.Should().NotBeNull();
            a.Should().NotBeNull();
            c.Should().NotBeNull();
        }
 public void Should_create_a_mocked_implementation(AbstractType foo)
 {
     foo.Should().NotBeNull();
     Mock.Get(foo).Should().NotBeNull();
 }
 public void Should_inject_instances(AbstractType foo)
 {
     foo.Should().NotBeNull();
 }