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

                // When, Then
                Assert.Throws<ArgumentException>(() => pipelines.Add("foo"));
            }
示例#2
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);
            }
示例#3
0
            public void ReturnsTrueForDifferentCase()
            {
                // Given
                PipelineCollection pipelines = new PipelineCollection();
                pipelines.Add("Test");

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

                // Then
                Assert.IsTrue(contains);
            }