public void LineAfter() { int startLine = 3; int startCol = 3; int endLine = 7; int endCol = 7; int targetLine = 9; int targetCol = 9; bool actual = SymbolUtil.Wraps(startLine, startCol, endLine, endCol, targetLine, targetCol); Assert.IsFalse(actual); }
public void SameEndLineTrue() { int startLine = 3; int startCol = 3; int endLine = 7; int endCol = 7; int targetLine = 7; int targetCol = 1; bool actual = SymbolUtil.Wraps(startLine, startCol, endLine, endCol, targetLine, targetCol); Assert.IsTrue(actual); }
public void Negatives() { int startLine = -1; int startCol = -1; int endLine = -1; int endCol = -1; int targetLine = 5; int targetCol = 5; bool actual = SymbolUtil.Wraps(startLine, startCol, endLine, endCol, targetLine, targetCol); Assert.IsFalse(actual); }
public void zeroCharTheoreticalEdgeCase() { int startLine = 3; int startCol = 3; int endLine = 3; int endCol = 3; int targetLine = 3; int targetCol = 3; bool actual = SymbolUtil.Wraps(startLine, startCol, endLine, endCol, targetLine, targetCol); Assert.IsTrue(actual); }
public void singleCharEdgeCase1out() { int startLine = 3; int startCol = 3; int endLine = 3; int endCol = 4; int targetLine = 3; int targetCol = 5; bool actual = SymbolUtil.Wraps(startLine, startCol, endLine, endCol, targetLine, targetCol); Assert.IsFalse(actual); }
public void targetAtSymbolEndMultiLine_1off() { int startLine = 3; int startCol = 3; int endLine = 7; int endCol = 7; int targetLine = 7; int targetCol = 8; bool actual = SymbolUtil.Wraps(startLine, startCol, endLine, endCol, targetLine, targetCol); Assert.IsFalse(actual); }
public void targetAtSymbolStartMultiLine() { int startLine = 3; int startCol = 3; int endLine = 7; int endCol = 7; int targetLine = 3; int targetCol = 3; bool actual = SymbolUtil.Wraps(startLine, startCol, endLine, endCol, targetLine, targetCol); Assert.IsTrue(actual); }
public void AllLinesEqualInside() { int startLine = 3; int startCol = 3; int endLine = 3; int endCol = 7; int targetLine = 3; int targetCol = 5; bool actual = SymbolUtil.Wraps(startLine, startCol, endLine, endCol, targetLine, targetCol); Assert.IsTrue(actual); }
public void AllLinesEqualBefore() { int startLine = 3; int startCol = 3; int endLine = 3; int endCol = 7; int targetLine = 3; int targetCol = 1; bool actual = SymbolUtil.Wraps(startLine, startCol, endLine, endCol, targetLine, targetCol); Assert.IsFalse(actual); }
public void BasicTrueTrivial() { int startLine = 3; int startCol = 3; int endLine = 7; int endCol = 7; int targetLine = 5; int targetCol = 5; bool actual = SymbolUtil.Wraps(startLine, startCol, endLine, endCol, targetLine, targetCol); Assert.IsTrue(actual); }
public void Overflow() { int startLine = 3; int startCol = 3; int endLine = 7; int endCol = 7; int bignumber = int.MaxValue; endCol += bignumber; int targetLine = 5; int targetCol = 5; bool actual = SymbolUtil.Wraps(startLine, startCol, endLine, endCol, targetLine, targetCol); Assert.IsFalse(actual); }