BatchGuy.Unit.Tests.ExtensionMethods.ExtensionMethodTests.extensionmethods_removecolons_test C# (CSharp) Метод

extensionmethods_removecolons_test() приватный Метод

private extensionmethods_removecolons_test ( ) : void
Результат void
        public void extensionmethods_removecolons_test()
        {
            //given a string with a colon in it
            string stringWithColon = "1:";
            //when i attempt to remove colons
            string stringWithNoColon = stringWithColon.RemoveColons();
            //then colons should be removed
            stringWithNoColon.Should().Be("1");
        }