Skip to content

Commit a248a8b

Browse files
committed
Change namespace to avoid conflicts.
1 parent ebff35c commit a248a8b

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

Source/RandomData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Security.Cryptography;
55
using System.Text;
66

7-
namespace Exceptionless.RandomData {
7+
namespace Exceptionless {
88
public static class RandomData {
99
private static readonly Random _random;
1010

Source/Tests/Exceptioless.RandomData.Tests.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@
4848
<ItemGroup>
4949
<None Include="packages.config" />
5050
</ItemGroup>
51+
<ItemGroup>
52+
<ProjectReference Include="..\Exceptionless.RandomData.csproj">
53+
<Project>{03d15274-63f1-4ee0-b16e-414e1b42d12d}</Project>
54+
<Name>Exceptionless.RandomData</Name>
55+
</ProjectReference>
56+
</ItemGroup>
5157
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
5258
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
5359
Other similar extension points exist, see Microsoft.Common.targets.

Source/Tests/RandomDataTests.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
using Xunit;
1+
using Xunit;
72

8-
namespace Exceptionless.RandomData.Tests
3+
namespace Exceptionless.Tests
94
{
105
public class RandomDataTests
116
{
127
[Fact]
138
public void CanGenerateRandomData() {
14-
// TODO: Write some tests for this.
9+
int value = RandomData.GetInt(1, 5);
10+
Assert.InRange(value, 1, 5);
11+
12+
value = _numbers.Random();
13+
Assert.InRange(value, 1, 3);
1514
}
15+
16+
private int[] _numbers = new[] {1, 2, 3};
1617
}
1718
}

0 commit comments

Comments
 (0)