Beispiel #1
0
    public string GetPosition()
    {
        StringBuilder builder = new StringBuilder();

        builder.Append(x).Append(" ").Append(y).Append(" ").Append(OrientationConverter.DegreesToCardinal(orientation));
        if (lost)
        {
            builder.Append(" ").Append("LOST");
        }

        return(builder.ToString());
    }
Beispiel #2
0
        public void degreesToCardinalTest(float orientation, string expect)
        {
            string result = OrientationConverter.DegreesToCardinal(orientation);

            Assert.Equal(expect, result);
        }