public void ToString_OfDim_Converts() { var dim = new Dim(new ArrayVariable("A", new[] { new Constant("1") })); var actual = dim.ToString(); Assert.AreEqual("DIM A[1]", actual); }
public Coordinate(string place = "New coordinate", int x = 0, int y = 64, int z = 0, Dim dimension = Dim.Overworld) { UseItemStyleForSubItems = false; Text = place; SubItems.Add(new ListViewSubItem(this, x.ToString())); SubItems.Add(new ListViewSubItem(this, y.ToString())); SubItems.Add(new ListViewSubItem(this, z.ToString())); SubItems.Add(new ListViewSubItem(this, dimension.ToString())); }
public void New_Works() { var dim = new Dim(); Assert.Equal("Terminal.Gui.Dim", dim.ToString()); }
public override string ToString() { return(BaseType + (Dim > 1 ? Dim.ToString() : "") + (IsPointer ? "*" : "")); }
override public string ToString() { return("CoordSystem(" + x.ToString() + ", " + y.ToString() + ", " + z.ToString() + ")"); }