コード例 #1
0
        public void NothingElseCalled_StyleReturned()
        {
            //Arrange
            RequireSriForDirectiveBuilder builder = new RequireSriForDirectiveBuilder();

            //Act
            builder.Style();

            //Assert
            string result = builder.Build();

            Assert.Equal("style", result);
        }
コード例 #2
0
        public void SomethingElseCalled_PreviousOverwritten()
        {
            //Arrange
            RequireSriForDirectiveBuilder builder = new RequireSriForDirectiveBuilder();

            //Act
            builder.Style();
            builder.Script();

            //Assert
            string result = builder.Build();

            Assert.Equal("script", result);
        }