Skip to content

Commit

Permalink
🚧Remove Assert Extensions (#323)
Browse files Browse the repository at this point in the history
* Remove `AssertExtensions` from `SoundTests.cs`

* Remove `AssertExtensions` from `AudioDeviceManagerTests.cs`

* Remove `AssertExtensions` from `NativeDependencyManagerTests.cs`

* Delete `AssertExtensions.cs`

* force status checks

---------

Co-authored-by: Calvin Wilkinson <[email protected]>
Co-authored-by: Calvin Wilkinson <[email protected]>
  • Loading branch information
3 people authored Dec 10, 2023
1 parent e65d30f commit ca4ac5e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 142 deletions.
11 changes: 5 additions & 6 deletions Testing/CASLTests/Devices/AudioDeviceManagerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ namespace CASLTests.Devices;
using CASL.OpenAL;
using Moq;
using Xunit;
using Assert = Helpers.AssertExtensions;
using FluentAssertions;
#pragma warning restore IDE0001 // Name can be simplified

Expand Down Expand Up @@ -460,11 +459,11 @@ public void ChangeDevice_WithNoNoDeviceChangedEventSubscription_DoesNotThrowExce
var manager = CreateManager();
manager.InitDevice();

// Act & Assert
Assert.DoesNotThrowNullReference(() =>
{
manager.ChangeDevice("test-device");
});
// Act
var action = () => manager.ChangeDevice("test-device");

// Assert
action.Should().NotThrow<NullReferenceException>();
}

[Fact]
Expand Down
134 changes: 0 additions & 134 deletions Testing/CASLTests/Helpers/AssertExtensions.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace CASLTests.NativeInterop;
using CASL.NativeInterop;
using Moq;
using Xunit;
using Assert = Helpers.AssertExtensions;
using FluentAssertions;
#pragma warning restore IDE0001 // Name can be simplified

Expand Down
1 change: 0 additions & 1 deletion Testing/CASLTests/SoundTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ namespace CASLTests;
using FluentAssertions;
using Moq;
using Xunit;
using Assert = Helpers.AssertExtensions;

/// <summary>
/// Tests the <see cref="Sound"/> class.
Expand Down

0 comments on commit ca4ac5e

Please sign in to comment.