public void CharacterViewModel_SortDataSet_Default_Should_Pass() { // Arrange // Add items into the list Z ordered var dataList = new List <BaseCharacter> { new BaseCharacter { Name = "z" }, new BaseCharacter { Name = "m" }, new BaseCharacter { Name = "a" } }; // Act var result = ViewModel.SortDataset(dataList); // Reset // Assert Assert.AreEqual("a", result[0].Name); Assert.AreEqual("m", result[1].Name); Assert.AreEqual("z", result[2].Name); }