Beispiel #1
0
        public void IsSatisfiedByNullThrows()
        {
            // Arrange
            var sut = new AnyTypeSpecification();

            // Act & assert
            Assert.Throws <ArgumentNullException>(() => sut.IsSatisfiedBy(null));
        }
        public void IsSatisfiedByNullThrows()
        {
            // Fixture setup
            var sut = new AnyTypeSpecification();

            // Exercise system and verify outcome
            Assert.Throws <ArgumentNullException>(() => sut.IsSatisfiedBy(null));
            // Teardown
        }
Beispiel #3
0
        public void SutIsRequestSpecification()
        {
            // Arrange
            // Act
            var sut = new AnyTypeSpecification();

            // Assert
            Assert.IsAssignableFrom <IRequestSpecification>(sut);
        }
        public void SutIsRequestSpecification()
        {
            // Fixture setup
            // Exercise system
            var sut = new AnyTypeSpecification();

            // Verify outcome
            Assert.IsAssignableFrom <IRequestSpecification>(sut);
            // Teardown
        }
Beispiel #5
0
        public void IsSatisfiedByReturnsCorrectResult(object request, bool expectedResult)
        {
            // Arrange
            var sut = new AnyTypeSpecification();
            // Act
            var result = sut.IsSatisfiedBy(request);

            // Assert
            Assert.Equal(expectedResult, result);
        }
        public void IsSatisfiedByReturnsCorrectResult(object request, bool expectedResult)
        {
            // Fixture setup
            var sut = new AnyTypeSpecification();
            // Exercise system
            var result = sut.IsSatisfiedBy(request);

            // Verify outcome
            Assert.Equal(expectedResult, result);
            // Teardown
        }