コード例 #1
0
        public void SutIsRequestSpecification()
        {
            // Arrange
            // Act
            var sut = new DictionarySpecification();

            // Assert
            Assert.IsAssignableFrom <IRequestSpecification>(sut);
        }
コード例 #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 IsSatisfiedByNonDictionaryRequestReturnsCorrectResult(object request)
        {
            // Arrange
            var sut = new DictionarySpecification();
            // Act
            var result = sut.IsSatisfiedBy(request);

            // Assert
            Assert.False(result);
        }
コード例 #4
0
        public void SutIsRequestSpecification()
        {
            // Fixture setup
            // Exercise system
            var sut = new DictionarySpecification();

            // Verify outcome
            Assert.IsAssignableFrom <IRequestSpecification>(sut);
            // Teardown
        }
コード例 #5
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
        }