public AddCustomAttribute ( string attributeNamespace, string name, bool isQuoted, string value ) : IAssemblyInfoDetails | ||
attributeNamespace | string | The namespace that the attribute exists in |
name | string | The name of the attribute |
isQuoted | bool | Wether or not to quote the value when the file is generated |
value | string | The value of the attribute |
return | IAssemblyInfoDetails |
public void ShouldHanldeCustomAttribute() { var subject = new AssemblyInfoDetails(new CSharpAssemblyInfoBuilder()); subject.AddCustomAttribute("Namespace", "Name", true, "Value"); Assert.That(subject.Imports.Contains("Namespace")); Assert.That(subject.LineItems[0].Name, Is.EqualTo("Name")); Assert.That(subject.LineItems[0].Value, Is.EqualTo("Value")); }
public void ShouldHanldeCustomAttribute() { var subject = new AssemblyInfoDetails(new CSharpAssemblyInfoBuilder()); subject.AddCustomAttribute("Namespace", "Name", true, "Value"); Assert.That(subject.Imports.Contains("Namespace")); Assert.That(subject.LineItems[0].Name, Is.EqualTo("Name")); Assert.That(subject.LineItems[0].Value, Is.EqualTo("Value")); }