mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-02-08 05:30:59 -05:00
- Added Sandbox.Test.Unit project (contains independent tests that can run in parallel) - Modify some slow/stress tests (e.g. instead of doing a million iterations settle for 10k). Tests run almost twice as fast now.
25 lines
369 B
Plaintext
25 lines
369 B
Plaintext
@namespace TestComponents
|
|
@using System.Diagnostics;
|
|
@using Sandbox.UI;
|
|
|
|
@if (ShowFirstItem)
|
|
{
|
|
<one @ref=One></one>
|
|
}
|
|
|
|
@if (ShowMiddleItem)
|
|
{
|
|
<two></two>
|
|
}
|
|
|
|
<three @ref=Three></three>
|
|
|
|
@code
|
|
{
|
|
public bool ShowFirstItem { get; set; }
|
|
public bool ShowMiddleItem { get; set; }
|
|
|
|
public Panel One { get; set; }
|
|
public Panel Three { get; set; }
|
|
}
|