Skip to content

Commit

Permalink
Add ResponseDocument tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rfavreau committed Sep 11, 2022
1 parent ece1664 commit a7d2e6d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions OFX-Tool.Test/Entities/ResponseDocumentTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using RFD.OFXTool.Library.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RFD.OFXTool.Library.Entities.Tests
{
[TestClass()]
public class ResponseDocumentTests
{
[TestMethod()]
public void EqualsTest()
{
var entity = new ResponseDocument();
Assert.IsFalse(entity.Equals(null));
Assert.IsFalse(entity.Equals(new Object()));
Assert.AreEqual(entity, new ResponseDocument());
Assert.AreNotEqual(entity, new ResponseDocument() { BankResponseMessageSetV1 = new BankResponseMessageSetV1() });
}

[TestMethod()]
public void GetHashCodeTest()
{
var entity = new ResponseDocument();
Assert.IsNotNull(entity.GetHashCode());
}
}
}

0 comments on commit a7d2e6d

Please sign in to comment.