ApprovalTests.Reporters.AssertReporter.AssertEqual C# (CSharp) Method

AssertEqual() public method

public AssertEqual ( string approvedContent, string receivedContent ) : void
approvedContent string
receivedContent string
return void
        public void AssertEqual(string approvedContent, string receivedContent)
        {
            try
            {
                Type type = Type.GetType(assertClass);
                var parameters = new[] { approvedContent, receivedContent };
                InvokeEqualsMethod(type, parameters);
            }
            catch (TargetInvocationException e)
            {
                throw e.GetBaseException();
            }
        }