public void WhenUsingExistingSave_PreferredLoginMethodIsSet() { ILinkAccountButton mockLinkMethod = Substitute.For <ILinkAccountButton>(); systemUnderTest.LinkMethod = mockLinkMethod; systemUnderTest.UseExistingSave(); mockLinkMethod.Received().SetPreferredLoginMethod(); }
public void WhenUsingCurrentSave_PM_IsHidden() { ILinkAccountButton mockLinkMethod = Substitute.For <ILinkAccountButton>(); systemUnderTest.LinkMethod = mockLinkMethod; systemUnderTest.UseCurrentSave(); Assert.IsFalse(systemUnderTest.ViewModel.GetPropertyValue <bool>(AccountAlreadyLinkedPM.VISIBLE_PROPERTY)); }
public void WhenUsingExistingSave_LoginSceneIsLoaded() { ILinkAccountButton mockLinkMethod = Substitute.For <ILinkAccountButton>(); systemUnderTest.LinkMethod = mockLinkMethod; systemUnderTest.UseExistingSave(); MockSceneManager.Received().LoadScene("Login"); }
public void WhenUsingCurrentSave_LinkMethodIsCalled() { ILinkAccountButton mockLinkMethod = Substitute.For <ILinkAccountButton>(); systemUnderTest.LinkMethod = mockLinkMethod; systemUnderTest.UseCurrentSave(); mockLinkMethod.Received().ForceLinkAccount(); }