Skip to content

Commit c9a5502

Browse files
committed
trace2: messages in new file
Move Trace2 messages into a new file. The Trace2 file was getting a bit long and unwieldy, so this change is intended to separate it in a logical way into two smaller files that are (hopefully) easier to parse and reason about.
1 parent 784e7c7 commit c9a5502

File tree

4 files changed

+426
-417
lines changed

4 files changed

+426
-417
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using GitCredentialManager;
2+
using Xunit;
3+
4+
namespace Core.Tests;
5+
6+
public class Trace2MessageTests
7+
{
8+
[Theory]
9+
[InlineData(0.013772, " 0.013772 ")]
10+
[InlineData(26.316083, " 26.316083 ")]
11+
[InlineData(100.316083, "100.316083 ")]
12+
public void BuildTimeSpan_Match_Returns_Expected_String(double input, string expected)
13+
{
14+
var actual = Trace2Message.BuildTimeSpan(input);
15+
Assert.Equal(expected, actual);
16+
}
17+
}

src/shared/Core.Tests/Trace2Tests.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,4 @@ public void TryGetPipeName_Windows_Returns_Expected_Value(string input, string e
2727
Assert.True(isSuccessful);
2828
Assert.Matches(actual, expected);
2929
}
30-
31-
[Theory]
32-
[InlineData(0.013772, " 0.013772 ")]
33-
[InlineData(26.316083, " 26.316083 ")]
34-
[InlineData(100.316083, "100.316083 ")]
35-
public void BuildTimeSpan_Match_Returns_Expected_String(double input, string expected)
36-
{
37-
var actual = Trace2Message.BuildTimeSpan(input);
38-
Assert.Equal(expected, actual);
39-
}
4030
}

0 commit comments

Comments
 (0)