daveoftheparty / speedy-moq

Generate boilerplate code for Moq in C#
MIT License
1 stars 0 forks source link

IMockText comprehensive testing #7

Closed daveoftheparty closed 3 years ago

daveoftheparty commented 3 years ago

Need comprehensive testing for IMockText.GetMockTextAsync

This is probably not a complete list, but we should have tests in the UnitTests.Features/TestData/MockTests for at least the following:

public interface INotSoSimple
{
    Task<IEnumerable<SomeUserOutput>> GetStuffAsync(IReadOnlyDictionary<int, IEnumerable<SomeUserInput>> transformData);
}
public interface IWassupNull
{
    void Boom(DateTime? mostFuLlStAcKeNgInEeRsTooStupidForNulls);
}
public interface IMakeTupleYay
{
    (string hello, bool valid) YouDontSay(char c);
}

We also need tests for interfaces with multiple methods. Interfaces with properties. Interfaces with methods AND properties, (a test for an interface that has a single method and one property, tests for permutations of plurality on methods/properties)