1 // Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
2 
3 using Xunit;
4 using Assert = Microsoft.TestCommon.AssertEx;
5 
6 namespace System.Web.Http
7 {
8     public class ErrorTests
9     {
10         [Fact]
Format()11         public void Format()
12         {
13             // Arrange
14             string expected = "The formatted message";
15 
16             // Act
17             string actual = Error.Format("The {0} message", "formatted");
18 
19             // Assert
20             Assert.Equal(expected, actual);
21         }
22     }
23 }
24