Beispiel #1
0
        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()));
        }
Beispiel #3
0
        public void New_Works()
        {
            var dim = new Dim();

            Assert.Equal("Terminal.Gui.Dim", dim.ToString());
        }
Beispiel #4
0
 public override string ToString()
 {
     return(BaseType + (Dim > 1 ? Dim.ToString() : "") + (IsPointer ? "*" : ""));
 }
Beispiel #5
0
 override public string ToString()
 {
     return("CoordSystem(" + x.ToString() + ", " + y.ToString() + ", " + z.ToString() + ")");
 }