Exemplo n.º 1
0
        public static AndConstraint <StringAssertions> ContainVisuallySameFragmentIfNotLocalized(this StringAssertions assertions, string expected, string because = "", params object[] becauseArgs)
        {
            if (!DotnetUnderTest.IsLocalized())
            {
                return(ContainVisuallySameFragment(assertions, expected, because, becauseArgs));
            }

            return(new AndConstraint <StringAssertions>(assertions));
        }
Exemplo n.º 2
0
        public static AndConstraint <StringAssertions> BeVisuallyEquivalentToIfNotLocalized(this StringAssertions assertions, string expected, string because = "", params object[] becauseArgs)
        {
            if (!DotnetUnderTest.IsLocalized())
            {
                return(BeVisuallyEquivalentTo(assertions, expected, because, becauseArgs));
            }

            return(new AndConstraint <StringAssertions>(assertions));
        }