summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Tests/Framework/Sample.cs
blob: 10006f1e1c458cfc3946790374f357a8e6a30b55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;

namespace StardewModdingAPI.Tests.Framework
{
    /// <summary>Provides sample values for unit testing.</summary>
    internal static class Sample
    {
        /*********
        ** Properties
        *********/
        /// <summary>A random number generator.</summary>
        private static readonly Random Random = new Random();


        /*********
        ** Properties
        *********/
        /// <summary>Get a sample string.</summary>
        public static string String()
        {
            return Guid.NewGuid().ToString("N");
        }

        /// <summary>Get a sample integer.</summary>
        public static int Int()
        {
            return Sample.Random.Next();
        }
    }
}