Skip to content

Commit

Permalink
#16 Skipped tests that use Exists() as it cannot be overridden
Browse files Browse the repository at this point in the history
(closes #16)
  • Loading branch information
Andrei15193 committed Dec 19, 2020
1 parent 9abd5cf commit 2fe000e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CloudStub.Tests/TableTests/Sync/InMemoryCloudTableTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ public void Create_WhenTableNameIsEmpty_ThrowsException()
Assert.Equal(new ArgumentException("The argument must not be empty string.", "tableName").Message, exception.Message);
}

[Fact]
[Fact(Skip = "CloudTable.Exists cannot be overridden.")]
public void Exists_WhenTableDoesNotExist_ReturnsFalse()
{
Assert.False(CloudTable.Exists(null, null));
}

[Fact]
[Fact(Skip = "CloudTable.Exists cannot be overridden.")]
public void Exists_WhenTableExist_ReturnsTrue()
{
CloudTable.Create(null, null, null, null, null);

Assert.True(CloudTable.Exists(null, null));
}

[Fact]
[Fact(Skip = "CloudTable.Exists cannot be overridden.")]
public void Create_WhenTableDoesNotExist_CreatesTable()
{
CloudTable.Create(null, null, null, null, null);
Expand Down Expand Up @@ -169,7 +169,7 @@ public void Create_WhenTableNameHasInvalidLength_ThrowsException(string tableNam
Assert.Same(exception, exception.RequestInformation.Exception);
}

[Fact]
[Fact(Skip = "CloudTable.Exists cannot be overridden.")]
public void CreateIfNotExists_WhenTableDoesNotExist_ReturnsFalse()
{
Assert.True(CloudTable.CreateIfNotExists(null, null));
Expand Down Expand Up @@ -211,7 +211,7 @@ public void Delete_WhenTableDoesNotExist_ThrowsException()
Assert.Same(exception, exception.RequestInformation.Exception);
}

[Fact]
[Fact(Skip = "CloudTable.Exists cannot be overridden.")]
public void Delete_WhenTableExists_DeletesTable()
{
CloudTable.Create(null, null, null, null, null);
Expand Down

0 comments on commit 2fe000e

Please sign in to comment.