From 4ceb790faf3b9bfb26cd85af7d927f881a5f26e4 Mon Sep 17 00:00:00 2001 From: Eirik Tsarpalis Date: Thu, 8 Sep 2016 13:35:42 +0100 Subject: [PATCH] update AssemblyInfoFIle tests --- src/test/Test.FAKECore/AssemblyInfoSpecs.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/Test.FAKECore/AssemblyInfoSpecs.cs b/src/test/Test.FAKECore/AssemblyInfoSpecs.cs index c65ec2ba8c6..94f71a3e728 100644 --- a/src/test/Test.FAKECore/AssemblyInfoSpecs.cs +++ b/src/test/Test.FAKECore/AssemblyInfoSpecs.cs @@ -24,7 +24,7 @@ public class when_using_fsharp_task_with_default_config AssemblyInfoFile.Attribute.Version("1.0.0.0") }; AssemblyInfoFile.CreateFSharpAssemblyInfo(infoFile, attributes); - const string expected = "namespace System\r\nopen System.Reflection\r\n\r\n[]\r\n[]\r\ndo ()\r\n\r\nmodule internal AssemblyVersionInformation =\r\n let [] Version = \"1.0.0.0\"\r\n let [] InformationalVersion = \"1.0.0.0\"\r\n"; + const string expected = "// Auto-Generated by FAKE; do not edit\r\nnamespace System\r\nopen System.Reflection\r\n\r\n[]\r\n[]\r\ndo ()\r\n\r\nmodule internal AssemblyVersionInformation =\r\n let [] Version = \"1.0.0.0\"\r\n let [] InformationalVersion = \"1.0.0.0\"\r\n"; File.ReadAllText(infoFile) .ShouldEqual(expected.Replace("\r\n", Environment.NewLine)); @@ -87,7 +87,7 @@ public class when_using_fsharp_task_with_custom_config AssemblyInfoFile.Attribute.Version("1.0.0.0") }; AssemblyInfoFile.CreateFSharpAssemblyInfoWithConfig(infoFile, attributes, customConfig); - const string expected = "namespace Custom\r\nopen System.Reflection\r\n\r\n[]\r\n[]\r\ndo ()\r\n\r\n"; + const string expected = "// Auto-Generated by FAKE; do not edit\r\nnamespace Custom\r\nopen System.Reflection\r\n\r\n[]\r\n[]\r\ndo ()\r\n\r\n"; File.ReadAllText(infoFile) .ShouldEqual(expected.Replace("\r\n", Environment.NewLine)); };