public void IgnoresNonSubstituteSpecimens()
        {
            // Arrange
            var context  = Substitute.For <ISpecimenContext>();
            var specimen = new ConcreteTypeWithSealedMembers();
            var sut      = new NSubstituteSealedPropertiesCommand();

            // Act & Assert
            Assert.Null(Record.Exception(() => sut.Execute(specimen, context)));

            context.DidNotReceiveWithAnyArgs().Resolve(null);
        }
        public void IgnoresNonSubstituteSpecimens()
        {
            // Fixture setup
            var context  = Substitute.For <ISpecimenContext>();
            var specimen = new ConcreteTypeWithSealedMembers();
            var sut      = new NSubstituteSealedPropertiesCommand();

            // Exercise system and verify outcome
            Assert.DoesNotThrow(() => sut.Execute(specimen, context));

            context.DidNotReceiveWithAnyArgs().Resolve(null);
        }
        public void IgnoresNonSubstituteSpecimens()
        {
            // Fixture setup
            var context = Substitute.For<ISpecimenContext>();
            var specimen = new ConcreteTypeWithSealedMembers();
            var sut = new NSubstituteSealedPropertiesCommand();
            // Exercise system and verify outcome
            Assert.DoesNotThrow(() => sut.Execute(specimen, context));

            context.DidNotReceiveWithAnyArgs().Resolve(null);
        }