コード例 #1
0
        public void IsSatisfiedByNonDictionaryRequestReturnsCorrectResult(object request)
        {
            // Arrange
            var sut = new DictionarySpecification();
            // Act
            var result = sut.IsSatisfiedBy(request);

            // Assert
            Assert.False(result);
        }
コード例 #2
0
        public void IsSatisfiedByDictionaryRequestReturnsCorrectResult(Type request)
        {
            // Arrange
            var sut = new DictionarySpecification();
            // Act
            var result = sut.IsSatisfiedBy(request);

            // Assert
            Assert.True(result);
        }
コード例 #3
0
        public void IsSatisfiedByDictionaryRequestReturnsCorrectResult(Type request)
        {
            // Fixture setup
            var sut = new DictionarySpecification();
            // Exercise system
            var result = sut.IsSatisfiedBy(request);

            // Verify outcome
            Assert.True(result);
            // Teardown
        }