Example #1
0
            public void ThrowsForDuplicateNameWithDifferentCase()
            {
                // Given 
                PipelineCollection pipelines = new PipelineCollection();
                pipelines.Add("Foo");

                // When, Then
                Assert.Throws<ArgumentException>(() => pipelines.Add("foo"));
            }
Example #2
0
            public void ReturnsTrueForDifferentCase()
            {
                // Given
                PipelineCollection pipelines = new PipelineCollection();
                pipelines.Add("Test");

                // When
                bool contains = pipelines.ContainsKey("test");

                // Then
                Assert.IsTrue(contains);
            }
Example #3
0
            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);
            }