Skip to content

Commit

Permalink
Fixed unit test for config serialization to be independend on current…
Browse files Browse the repository at this point in the history
… DotVVM assembly version
  • Loading branch information
tomasherceg committed May 31, 2020
1 parent 0297b96 commit 06933a8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text.RegularExpressions;
using CheckTestOutput;
using DotVVM.Framework.Compilation;
using DotVVM.Framework.Configuration;
Expand All @@ -24,6 +25,7 @@ public ConfigurationSerializationTests()
void checkConfig(DotvvmConfiguration config, string checkName = null, string fileExtension = "json", [CallerMemberName] string memberName = null, [CallerFilePath] string sourceFilePath = null)
{
var serialized = DotVVM.Framework.Hosting.VisualStudioHelper.SerializeConfig(config);
serialized = Regex.Replace(serialized, "DotVVM\\.Framework, Version=[0-9.]+,", "DotVVM.Framework, Version=2.4.0.2,");
check.CheckString(serialized, checkName, fileExtension, memberName, sourceFilePath);
}

Expand Down

0 comments on commit 06933a8

Please sign in to comment.