Skip to content

Unit Tests silently fail. #36

Open
@jamescurran

Description

@jamescurran

IF the connection string isn't set in the appsettings.json file for the unit tests (as is the case in the checked-in file), all the test will just return without doing anything or triggering an assert (appearing to pass).

The lines at AzureServiceBusQueueTests.cs(21)

        if (String.IsNullOrEmpty(connectionString))
            return null;

need to be changed to something like:

         Assert.False(String.IsNullOrEmpty(connectionString), "AzureServiceBusConnectionString must be specified in the appsettings.json file");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions