public void AddTextExtension()
 {
     #region AddTextExtension
     Extensions.AddTextExtension("ext1");
     Extensions.AddTextExtension(".ext2");
     Assert.True(Extensions.IsText("ext1"));
     Assert.True(Extensions.IsText("ext2"));
     #endregion
 }
Exemple #2
0
 static PipelineApprovals()
 {
     Extensions.AddTextExtension("dot");
     DiffTools.AddToolBasedOn(
         DiffTool.VisualStudioCode,
         "Vs Code for Visgraph",
         arguments: (temp, target) => $"-r \"{temp}\"",
         binaryExtensions: new[] { ".dot" });
 }
 public void RemoveTextExtension()
 {
     #region RemoveTextExtension
     Extensions.AddTextExtension("ext1");
     Extensions.AddTextExtension(".ext2");
     Assert.True(Extensions.IsText("ext1"));
     Assert.True(Extensions.IsText("ext2"));
     Extensions.RemoveTextExtension("ext1");
     Extensions.RemoveTextExtension(".ext2");
     Assert.False(Extensions.IsText("ext1"));
     Assert.False(Extensions.IsText("ext2"));
     #endregion
 }