Esempio n. 1
0
        public void Test_MoveTheToEndOfName_PrefixTheColonNoSpace()
        {
            Game game = new Game()
            {
                Name = "The Game: Subtitle"
            };

            NameUpdater nameUpdater = new NameUpdater();

            nameUpdater.MoveTheToEndOfName(game);
            string actualValue   = game.Name;
            string expectedValue = "Game, The: Subtitle";

            Assert.Equal(expectedValue, actualValue);
        }
Esempio n. 2
0
        public void Test_MoveTheToEndOfName_PrefixTheNoPunctuation()
        {
            Game game = new Game()
            {
                Name = "The Game"
            };

            NameUpdater nameUpdater = new NameUpdater();

            nameUpdater.MoveTheToEndOfName(game);
            string actualValue   = game.Name;
            string expectedValue = "Game, The";

            Assert.Equal(expectedValue, actualValue);
        }