mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-07-31 15:58:27 -04:00
* Move all unit tests to Engine/Tests * Fix Margin.EdgeSubtract * Fix Capsule.Contains * EnvironmentVariables.Remove if it's null * Fixed ray trace never returning startedsolid * Fix HistoryList.Navigate on empty list * Fix GameObject.WorldPosition accepting NaNs * Fix flex: initial expanding to the wrong grow/shrink * Translation.TryConvert shouldn't throw on invalid enum strings * Skip sound file tests on machines with no audio device
62 lines
1.3 KiB
C#
62 lines
1.3 KiB
C#
using Sandbox;
|
|
|
|
/// <summary>
|
|
/// This class has a description!
|
|
/// </summary>
|
|
public class DescriptionTest
|
|
{
|
|
/// <summary>
|
|
/// This property has a description!
|
|
/// </summary>
|
|
public int Foo { get; set; }
|
|
|
|
/// <summary>
|
|
/// This method has a description!
|
|
/// </summary>
|
|
/// <param name="baz">
|
|
/// This parameter has a description!
|
|
/// </param>
|
|
/// <returns>
|
|
/// Here's a description of the return value!
|
|
/// </returns>
|
|
public int Bar( int baz )
|
|
{
|
|
return baz;
|
|
}
|
|
|
|
public int Boo( int bep )
|
|
{
|
|
return bep;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <para>Method description. See also: <see cref="Bar"/>!</para>
|
|
/// <para>Here's a parameter reference: <paramref name="arg"/>.</para>
|
|
/// <para>
|
|
/// How about some code: <c>Console.WriteLine("Hello, World!");</c>
|
|
/// </para>
|
|
/// <para>
|
|
/// Here's some more refs:
|
|
/// <see cref="GenericTest{T}"/>,
|
|
/// <see cref="GenericTest{T}.SomeProperty"/>,
|
|
/// <see cref="NestedType"/>.
|
|
/// </para>
|
|
/// </summary>
|
|
/// <param name="arg">A useful argument.</param>
|
|
public int ComplexDescription( int arg )
|
|
{
|
|
return arg;
|
|
}
|
|
|
|
public class NestedType
|
|
{
|
|
|
|
}
|
|
}
|
|
|
|
public class GenericTest<T>
|
|
{
|
|
public int SomeProperty { get; set; }
|
|
}
|