public void WhenOnlyMergeSet_ReturnsCorrect()
            {
                var settings = new AssemblyOptionSettings {
                    Merge = true
                };

                var actual = AssemblyArgumentsBuilderExtension.AppendArguments(settings, preCommand: false);

                Assert.That(actual, Is.EqualTo(new [] { "merge:true" }));
            }
            public void WhenOnlyAssemblyNameSet_ReturnsWithoutIt()
            {
                var settings = new AssemblyOptionSettings {
                    Assembly = "tubo.dll"
                };

                var actual = AssemblyArgumentsBuilderExtension.CollectAll(settings);

                Assert.That(actual, Is.Empty);
            }
 public string WhenInput_ReturnsCorrectlyFormatted(string name)
 {
     return(AssemblyArgumentsBuilderExtension.GetPropertyName(name));
 }
            public void WhenGivenNull_NullIsReturned()
            {
                var actual = AssemblyArgumentsBuilderExtension.GetArgumentFromNullableIntProperty(StringProperty, null);

                Assert.That(actual, Is.Null);
            }
            public void WhenGivenValue_FormatsProperly()
            {
                var actual = AssemblyArgumentsBuilderExtension.GetArgumentFromNullableIntProperty(NullableIntProperty, 1);

                Assert.That(actual, Is.EqualTo("nullableint:1"));
            }
            public void WhenGivenNullAndNoParameter_NullIsReturned()
            {
                var actual = AssemblyArgumentsBuilderExtension.GetArgumentFromStringProperty(StringProperty, null, parameter: null);

                Assert.That(actual, Is.Null);
            }
            public void WhenGivenStringPropertyAndNoParameter_FormatsProperly()
            {
                var actual = AssemblyArgumentsBuilderExtension.GetArgumentFromStringProperty(StringProperty, "tubo", parameter: null);

                Assert.That(actual, Is.EqualTo("string:\"tubo\""));
            }
            public void WhenNullNoParameter_NullIsReturned()
            {
                var actual = AssemblyArgumentsBuilderExtension.GetArgumentFromNullableBoolProperty(NullableBoolProperty, null, parameter: null);

                Assert.That(actual, Is.Null);
            }
            public void WhenFalseNoParameter_NullIsReturned()
            {
                var actual = AssemblyArgumentsBuilderExtension.GetArgumentFromNullableBoolProperty(NullableBoolProperty, false, parameter: null);

                Assert.That(actual, Is.EqualTo("nullablebool:false"));
            }
            public void WhenTrueAndNoParameter_FormatsProperly()
            {
                var actual = AssemblyArgumentsBuilderExtension.GetArgumentFromNullableBoolProperty(NullableBoolProperty, true, parameter: null);

                Assert.That(actual, Is.EqualTo("nullablebool:true"));
            }