Skip to content

Commit

Permalink
test: Add the expected value in some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 committed Jan 3, 2024
1 parent 28e3b9b commit a744630
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/Loader/YeSqlLoaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,16 @@ public void LoadFromFiles_WhenSqlFilesExists_ShouldReturnsYeSqlCollection()
// Arrange
var loader = new YeSqlLoader();
var file = "./sql/users.sql";
var expectedCollection = new Dictionary<string, string>
{
{ "GetUsers", "SELECT* FROM [user];" }
};

// Act
var sqlStatements = loader.LoadFromFiles(file);

// Assert
sqlStatements.Should().NotBeNull();
sqlStatements.Should().BeEquivalentTo(expectedCollection);
}

[Test]
Expand Down Expand Up @@ -284,12 +288,16 @@ public void LoadFromDirectories_WhenSqlFilesExistsInDirectory_ShouldReturnsYeSql
// Arrange
var loader = new YeSqlLoader();
var directory = "./sql";
var expectedCollection = new Dictionary<string, string>
{
{ "GetUsers", "SELECT* FROM [user];" }
};

// Act
var sqlStatements = loader.LoadFromDirectories(directory);

// Assert
sqlStatements.Should().NotBeNull();
sqlStatements.Should().BeEquivalentTo(expectedCollection);
}

[Test]
Expand Down

0 comments on commit a744630

Please sign in to comment.