Exemplo n.º 1
0
 public bool Equals(PartialSelectedRange x, PartialSelectedRange y)
 {
     return(Nullable.Equals(x.StartLine, y.StartLine) &&
            Nullable.Equals(x.StartColumn, y.StartColumn) &&
            Nullable.Equals(x.EndLine, y.EndLine) &&
            Nullable.Equals(x.EndColumn, y.EndColumn));
 }
Exemplo n.º 2
0
        public async Task Custom(string customTestName)
        {
            CustomTest           test;
            PartialSelectedRange?selection;


            test = Definition.Tests.CreateUrl.Misc.First((x) => x.Name == customTestName);

            if (test.Selection is not null)
            {
                selection = new PartialSelectedRange(
                    test.Selection.StartLine,
                    test.Selection.StartColumn,
                    test.Selection.EndLine,
                    test.Selection.EndColumn
                    );
            }
            else
            {
                selection = null;
            }

            await RunTestAsync(
                test.Remote,
                test.Settings,
                test.Result,
                new ReverseTestOptions {
                Branch = test.Branch,
                FileMayStartWithBranch = Definition.Reverse.FileMayStartWithBranch,
                FileName  = test.FileName,
                Selection = selection,
                Type      = test.LinkType
            }
                );
        }
Exemplo n.º 3
0
 public UrlInfo(string filePath, StaticServer server, PartialSelectedRange selection)
 {
     FilePath  = filePath;
     Server    = server;
     Selection = selection;
 }
Exemplo n.º 4
0
 public int GetHashCode(PartialSelectedRange obj)
 {
     return(0);
 }