Testing

Builder for mocking Microsoft.Office.Interop.Outlook.MailItem

using System; using System.Collections.Generic; using Microsoft.Office.Interop.Outlook; using Moq; namespace ALeonJ.Tests.Builders { public class MailItemBuilder { private string _senderEmailAddress = "sender@example.com"; private string _senderEmailType = "EX"; ...
Read More

Unit Testing an ASP.NET MVC Controller

Some people argue that there is no value in testing MVC Controllers as they should not be housing any complex ...
Read More

ArrangeActAssert Test Class Structure

namespace ALeonJ { using System; using System.Diagnostics.CodeAnalysis; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq.AutoMock; [TestClass] public abstract class ArrangeActAssert<TUnderTest> where TUnderTest : class { ...
Read More