public void ItContainsVersionFile() { var versionFile = Path.Combine(_sharedFxRoot, ".version"); AssertEx.FileExists(versionFile); var lines = File.ReadAllLines(versionFile); Assert.Equal(2, lines.Length); Assert.Equal(TestData.GetRepositoryCommit(), lines[0]); Assert.Equal(TestData.GetSharedFxVersion(), lines[1]); }
public void ItContainsVersionFile() { var versionFile = Path.Combine(GetMetadataOutput(), ".version"); AssertEx.FileExists(versionFile); var lines = File.ReadAllLines(versionFile); Assert.Equal(2, lines.Length); Assert.Equal(TestData.GetRepositoryCommit(), lines[0]); Assert.Equal(TestData.GetPackageVersion(), lines[1]); }
public void ItContainsVersionFile() { var versionFile = Path.Combine(_sharedFxRoot, _expectedVersionFileName); AssertEx.FileExists(versionFile); var lines = File.ReadAllLines(versionFile); Assert.Equal(2, lines.Length); Assert.Equal(TestData.GetRepositoryCommit(), lines[0]); Assert.Equal(TestData.GetTestDataValue("RuntimePackageVersion"), lines[1]); }
public void ItContainsVersionFile() { var versionFile = Path.Combine(_sharedFxRoot, "Microsoft.AspNetCore.App.versions.txt"); AssertEx.FileExists(versionFile); var lines = File.ReadAllLines(versionFile); Assert.Equal(2, lines.Length); Assert.Equal(TestData.GetRepositoryCommit(), lines[0]); Assert.Equal(TestData.GetTestDataValue("RuntimePackageVersion"), lines[1]); }
public void ItContainsVersionFile(SharedFxConfig config) { var versionFile = Path.Combine(config.MetadataOutput, ".version"); AssertEx.FileExists(versionFile); var lines = File.ReadAllLines(versionFile); Assert.Equal(2, lines.Length); Assert.Equal(TestData.GetRepositoryCommit(), lines[0]); Assert.Equal(config.Version, lines[1]); }
public void ItContainsVersionFile(SharedFxConfig config) { var root = TestData.GetDotNetRoot(); var versionFile = Path.Combine(root, "shared", config.Name, config.Version, ".version"); AssertEx.FileExists(versionFile); var lines = File.ReadAllLines(versionFile); Assert.Equal(2, lines.Length); Assert.Equal(TestData.GetRepositoryCommit(), lines[0]); Assert.Equal(config.Version, lines[1]); }