Skip to content

Commit

Permalink
Fix tests to ignore the carriage
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan-hasanov committed Mar 13, 2021
1 parent 96bddbe commit ca06f29
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ public async Task ShouldGenerateCorrectConfigurationContent()
string builderContent = string.Empty;
string mockLogonCommand = "Mock logon command";

IOptions options = new Options();
IOptions options = new Options()
{
RootFilesDirectoryLocation = @"C:\Sandbox",
};
Configuration configuration = new Configuration();
XmlSerializer xmlSerializer = new XmlSerializer(typeof(Configuration));
XmlSerializerNamespaces xmlSerializerNamespaces = new XmlSerializerNamespaces(new[] { XmlQualifiedName.Empty });
Expand All @@ -45,7 +48,7 @@ public async Task ShouldGenerateCorrectConfigurationContent()
<Networking>Default</Networking>
<MappedFolders>
<MappedFolder>
<HostFolder>C:\Users\Hasan Hasanov\AppData\Local\Temp\Sandbox</HostFolder>
<HostFolder>C:\Sandbox</HostFolder>
<SandboxFolder>C:\Users\WDAGUtilityAccount\Desktop\Sandbox\</SandboxFolder>
<ReadOnly>false</ReadOnly>
</MappedFolder>
Expand All @@ -61,7 +64,7 @@ public async Task ShouldGenerateCorrectConfigurationContent()
<MemoryInMB>0</MemoryInMB>
</Configuration>";

Assert.Equal(expected, actual);
Assert.Equal(expected, actual, ignoreLineEndingDifferences: true);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ choco install git curl
";
string actual = sbChocolateyPackageManagerBuilder.ToString();

Assert.Equal(expected, actual);
Assert.Equal(expected, actual, ignoreLineEndingDifferences: true);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ scoop install git curl
";
string actual = sbScoopPackageManagerBuilder.ToString();

Assert.Equal(expected, actual);
Assert.Equal(expected, actual, ignoreLineEndingDifferences: true);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async Task ShouldGenerateCorrectContent()
Start-Process .";
string actual = strContent;

Assert.Equal(expected, actual);
Assert.Equal(expected, actual, ignoreLineEndingDifferences: true);
}
}
}

0 comments on commit ca06f29

Please sign in to comment.