public void NoOutputPlaceholder_CorrectUse_NoPadding() { var sut = new AllowedPlaceholderValidator(); var use = $"{Placeholder.NoOutput}"; var result = sut.ContainsIncorrectUseOfNoOutputPlaceholder(use); Assert.IsFalse(result); }
public void NoOutputPlaceholder_IncorrectUse() { var sut = new AllowedPlaceholderValidator(); var use = $"something {Placeholder.NoOutput} something"; var result = sut.ContainsIncorrectUseOfNoOutputPlaceholder(use); Assert.IsTrue(result); }