Example #1
0
        public void Draw_Args_Drawn()
        {
            var ctx = Substitute.For <IWorldContext>();
            var gfx = Substitute.For <IGraphicSystem>();

            ctx.GraphicSystem.Returns(gfx);

            var target = new MapTextSystem(ctx, "Avatar");

            target.Initialize();
            target.Draw(5, 10, "ABC", "Default");

            gfx.Received().Draw(5, 10, 'A'.White());
            gfx.Received().Draw(6, 10, 'B'.White());
            gfx.Received().Draw(7, 10, 'C'.White());
        }