public void WhenUsingExistingSave_PreferredLoginMethodIsSet() { ILinkAccountButton mockLinkMethod = Substitute.For <ILinkAccountButton>(); systemUnderTest.LinkMethod = mockLinkMethod; systemUnderTest.UseExistingSave(); mockLinkMethod.Received().SetPreferredLoginMethod(); }
public void WhenUsingCurrentSave_LinkMethodIsCalled() { ILinkAccountButton mockLinkMethod = Substitute.For <ILinkAccountButton>(); systemUnderTest.LinkMethod = mockLinkMethod; systemUnderTest.UseCurrentSave(); mockLinkMethod.Received().ForceLinkAccount(); }