public void ThrowsForDuplicateNameWithDifferentCase() { // Given PipelineCollection pipelines = new PipelineCollection(); pipelines.Add("Foo"); // When, Then Assert.Throws<ArgumentException>(() => pipelines.Add("foo")); }
public void ReturnsTrueForDifferentCase() { // Given PipelineCollection pipelines = new PipelineCollection(); pipelines.Add("Test"); // When bool contains = pipelines.ContainsKey("test"); // Then Assert.IsTrue(contains); }
public void AutoGeneratesNameForNullOrEmpty(string name) { // Given PipelineCollection pipelines = new PipelineCollection(); pipelines.Add("First"); // When pipelines.Add(name); // Then Assert.AreEqual("Pipeline 2", pipelines.Skip(1).First().Key); }