public void FileIsSame() { var pathOnly = new PathOnlyAssemblyFile(); var nugetFile = new VersionedFile(pathOnly, "1.0.0"); Assert.Same(pathOnly.OpenRead(), nugetFile.OpenRead()); }
public void PathIsCorrect() { var pathOnly = new PathOnlyAssemblyFile(); var nugetFile = new VersionedFile(pathOnly, "1.0.0"); Assert.Equal(pathOnly.Path, nugetFile.Path); }
public void VersionToString() { var version = "1.0.0"; var pathOnly = new PathOnlyAssemblyFile(); var nugetFile = new VersionedFile(pathOnly, version); Assert.Equal($"{pathOnly.Path} [{version}]", nugetFile.ToString()); }
public void VersionIsSet() { var version = "1.0.0"; var pathOnly = new PathOnlyAssemblyFile(); var nugetFile = new VersionedFile(pathOnly, version); Assert.Equal(version, nugetFile.Version); }