コード例 #1
0
        public void NoOutputPlaceholder_CorrectUse_NoPadding()
        {
            var sut = new AllowedPlaceholderValidator();

            var use = $"{Placeholder.NoOutput}";

            var result = sut.ContainsIncorrectUseOfNoOutputPlaceholder(use);

            Assert.IsFalse(result);
        }
コード例 #2
0
        public void NoOutputPlaceholder_IncorrectUse()
        {
            var sut = new AllowedPlaceholderValidator();

            var use = $"something {Placeholder.NoOutput} something";

            var result = sut.ContainsIncorrectUseOfNoOutputPlaceholder(use);

            Assert.IsTrue(result);
        }