Пример #1
0
        public void Versioning_MultiMMSameFile_UpdatesMultipleTimes()
        {
            b.Info.Flow();

            // Get the Std CSroj with no attributes.
            var    reid    = TestResources.GetIdentifiers(TestResourcesReferences.NetStdNone);
            string srcFile = uth.GetTestDataFile(reid);

            // Find This file
            var v = new MockVersioning(new MockVersionStorage(""));

            v.Mock.AddFilenameToFind(srcFile);
            v.LoadMiniMatches("**/csproj|StdFile", srcFile + "|StdFile", srcFile + "|StdAssembly", srcFile + "|StdInformational");
            v.SearchForAllFiles("");
            v.UpdateAllRegisteredFiles();

            string s = File.ReadAllText(srcFile);

            Assert.Contains("<Version>", s);
            Assert.Contains("<AssemblyVersion>", s);
            Assert.Contains("<FileVersion>", s);
        }
Пример #2
0
 public Mocking(MockVersioning p)
 {
     parent = p;
 }