public void CharacterCommons_RemoveNonExistantSpellFromKnownSpells_ValidCall() { //Arrange List <KnownSpellRowCM> KnownSpellRowCMs = new List <KnownSpellRowCM>(); List <KnownSpellRowCM> expected = new List <KnownSpellRowCM>(); KnownSpellRowCM realSpell = new KnownSpellRowCM() { Spell_id = CreateTestData.GetSampleSpell().Spell_id }; expected.Add(realSpell); KnownSpellRowCMs.Add(realSpell); KnownSpellRowCM fakeSpell = new KnownSpellRowCM() { Spell_id = Guid.Parse("96bd962c-5283-4f28-8a39-e82dbe01ff1a") }; KnownSpellRowCMs.Add(fakeSpell); KnownSpellRowCM[] knownSpellArray = KnownSpellRowCMs.ToArray(); using (var mockContext = AutoMock.GetLoose()) { IUnitOfWork uow = UoW_Factory.getUnitofWork(mockContext); IBaseUserAccess access = UserAccessFactory.getBaseUserAccess(uow); //act ICharacterCommonFunctions toTest = ProcessorFactory.GetCharacterCommonFunctions(access); var actual = toTest.removeNonExistantSpellCMFromKnownSpells(knownSpellArray, fakeSpell.Spell_id); //Assert actual.Should().BeEquivalentTo(expected.ToArray()); } }