Ejemplo n.º 1
0
        public static void BeEquivalentTo <T>(this IConvertible value, T expectedValue, Func <EquivalencyAssertionOptions <T>, EquivalencyAssertionOptions <T> > options, string because = "", params object[] becauseArgs)
        {
            value
            .Should()
            .NotBeNull(because, becauseArgs);

            Convert.ChangeType(value, typeof(T), CultureInfo.InvariantCulture)
            .Should()
            .BeEquivalentTo(expectedValue, options, because, becauseArgs);
        }