Ejemplo n.º 1
0
        public void Should_ReturndotNet_WhenRequestedCssClassFromTagWithNameDotNet()
        {
            //arrange
            var tag = new TagViewModel
                {
                    Name = ".Net"
                };

            //act and assert
            tag.CssClass.Should().Be("dotnet");
        }
Ejemplo n.º 2
0
        public void Should_Returnphp_WhenRequestedCssClassFromTagWithNamePhp()
        {
            //arrange
            var tag = new TagViewModel
            {
                Name = "Php"
            };

            //act and assert
            tag.CssClass.Should().Be("php");
        }
Ejemplo n.º 3
0
        public void Should_Returncplusplus_WhenRequestedCssClassFromTagWithNameCPlusPlus()
        {
            //arrange
            var tag = new TagViewModel
            {
                Name = "C++"
            };

            //act and assert
            tag.CssClass.Should().Be("cplusplus");
        }