コード例 #1
0
        public void WhenUsingExistingSave_PreferredLoginMethodIsSet()
        {
            ILinkAccountButton mockLinkMethod = Substitute.For <ILinkAccountButton>();

            systemUnderTest.LinkMethod = mockLinkMethod;
            systemUnderTest.UseExistingSave();

            mockLinkMethod.Received().SetPreferredLoginMethod();
        }
コード例 #2
0
        public void WhenUsingCurrentSave_LinkMethodIsCalled()
        {
            ILinkAccountButton mockLinkMethod = Substitute.For <ILinkAccountButton>();

            systemUnderTest.LinkMethod = mockLinkMethod;
            systemUnderTest.UseCurrentSave();

            mockLinkMethod.Received().ForceLinkAccount();
        }