27 lines
951 B
C#
27 lines
951 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System.Diagnostics;
|
|
using System.IO;
|
|
using Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests;
|
|
using Microsoft.AspNetCore.Testing;
|
|
using Microsoft.AspNetCore.Testing.xunit;
|
|
using Xunit;
|
|
|
|
namespace IIS.FunctionalTests
|
|
{
|
|
public class MofFileTests
|
|
{
|
|
[ConditionalFact]
|
|
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
|
|
[RequiresIIS(IISCapability.TracingModule)]
|
|
public void CheckMofFile()
|
|
{
|
|
var path = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("IISIntegration"), "src", "aspnetcoremodulev2", "aspnetcore", "ancm.mof");
|
|
var process = Process.Start("mofcomp.exe", path);
|
|
process.WaitForExit();
|
|
Assert.Equal(0, process.ExitCode);
|
|
}
|
|
}
|
|
}
|