Files
dotnet-runtime/src/libraries/System.IO.FileSystem.Primitives/tests/FileModeTests.cs
T

23 lines
638 B
C#

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.IO;
using Xunit;
namespace System.IO.Tests
{
public static class FileModeTests
{
[Fact]
public static void ValueTest()
{
Assert.Equal(1, (int)FileMode.CreateNew);
Assert.Equal(2, (int)FileMode.Create);
Assert.Equal(3, (int)FileMode.Open);
Assert.Equal(4, (int)FileMode.OpenOrCreate);
Assert.Equal(5, (int)FileMode.Truncate);
Assert.Equal(6, (int)FileMode.Append);
}
}
}