public void Basic() { KeywordBuilder builder = new KeywordBuilder(); builder.AddKeyword("a", "b"); builder.Build().ShouldDeepEqual(new Keyword(new[] { "a", "b" })); builder.AddKeyword("c"); builder.Build().ShouldDeepEqual(new Keyword(new[] { "a", "b", "c" })); builder.RemoveKeyword("c"); builder.Build().ShouldDeepEqual(new Keyword(new[] { "a", "b" })); Assert.ThrowsException <Exception>(() => builder.AddKeyword($"a{Keyword.KeywordSeperator}b")); }