This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-io-cil/tests/MfGames.IO.Tests/AssemblyExtensionsTests.cs

30 lines
571 B
C#
Raw Normal View History

using System.IO;
using MfGames.IO.Extensions;
using Xunit;
namespace MfGames.IO.Tests
{
public class AssemblyExtensionsTests
{
[Fact]
public void DirectoryExists()
{
DirectoryInfo? dir = this.GetType().Assembly.GetDirectory();
Assert.NotNull(dir);
Assert.True(dir!.Exists);
}
[Fact]
public void FileExists()
{
FileInfo? file = this.GetType().Assembly.GetFile();
Assert.NotNull(file);
Assert.True(file!.Exists);
}
}
}