public void WInteger_Add4() { WInteger w = new WInteger(0, 0, 10); w.Add(10001); Assert.AreEqual(1, w.Value); }
public void Splice(int targetStop) { int totalSymbols = 7; int topBuffer = 3; streamFinished = true; currentStop = new WInteger(targetStop, 0, symbols.Count); currentStop.Add(totalSymbols); spliceBuffer = totalSymbols + topBuffer; }
public static IEnumerable <CIUDADES> GetAllId(this RutasBLL r, WInteger id) { try { using (db = new PasajesBDEntities()) { return((from t in db.CIUDADES where !t.IdCiudad.Equals(id.Value) select t).ToList()); } } catch (Exception) { throw; } }
public void Initialize(List <Symbol> symbols) { this.symbols = symbols; currentStop = new WInteger(0, 0, symbols.Count); }
public void WInteger_Value1() { WInteger w = new WInteger(0, 0, 100); Assert.AreEqual(0, w.Value); }
public void WInteger_Value6() { WInteger w = new WInteger(-1, 0, 100); Assert.AreEqual(99, w.Value); }
public void WInteger_Value5() { WInteger w = new WInteger(101, 0, 100); Assert.AreEqual(1, w.Value); }