Skip to content

Conversation

@Halling69
Copy link
Contributor

@Halling69 Halling69 commented Jun 8, 2016

Made regex finding attributes in files tolerate whitespacing.
Added unit test for whitespacing: ShouldReplaceAssemblyVersionInRelativePathWithWhiteSpace

Fixes #871.

…Duplicate 'AssemblyVersion' attribute when using shared assembly info by making regex tolerate whitespacing.

Added unit test for whitespacing
[TestCase("fs", "[<assembly: AssemblyVersion ( \"1.0.0.0\" )>]\r\n[<assembly: AssemblyInformationalVersion\t(\t\"1.0.0.0\"\t)>]\r\n[<assembly: AssemblyFileVersion\r\n(\r\n\"1.0.0.0\"\r\n)>]")]
[TestCase("vb", "<Assembly: AssemblyVersion ( \"1.0.0.0\" )>\r\n<Assembly: AssemblyInformationalVersion\t(\t\"1.0.0.0\"\t)>\r\n<Assembly: AssemblyFileVersion\r\n(\r\n\"1.0.0.0\"\r\n)>")]
[Category("NoMono")]
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this test does not use ShouldMatchApproved(), you can remove the Category and Description attributes.

@asbjornu
Copy link
Member

@Halling69 I have one comment it would be nice if you could fix. Otherwise, this looks good to me.

@Halling69
Copy link
Contributor Author

I have removed the attributes from the test method I added.

@asbjornu asbjornu merged commit 391f5f3 into GitTools:master Jun 15, 2016
@asbjornu
Copy link
Member

@Halling69 Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants