コード例 #1
0
        public void FileIsSame()
        {
            var pathOnly  = new PathOnlyAssemblyFile();
            var nugetFile = new VersionedFile(pathOnly, "1.0.0");

            Assert.Same(pathOnly.OpenRead(), nugetFile.OpenRead());
        }
コード例 #2
0
        public void PathIsCorrect()
        {
            var pathOnly  = new PathOnlyAssemblyFile();
            var nugetFile = new VersionedFile(pathOnly, "1.0.0");

            Assert.Equal(pathOnly.Path, nugetFile.Path);
        }
コード例 #3
0
        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());
        }
コード例 #4
0
        public void VersionIsSet()
        {
            var version   = "1.0.0";
            var pathOnly  = new PathOnlyAssemblyFile();
            var nugetFile = new VersionedFile(pathOnly, version);

            Assert.Equal(version, nugetFile.Version);
        }