mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 22:48:07 -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.
17 lines
366 B
Plaintext
17 lines
366 B
Plaintext
@namespace TestComponents
|
|
@using System.Diagnostics;
|
|
@using Sandbox.UI;
|
|
|
|
@if ( ShowFirstElement)
|
|
{
|
|
<div @ref=MyReferencedElement>@this</div>
|
|
}
|
|
<div @ref=MyReferencedMarkup>markup content</div>
|
|
|
|
@code
|
|
{
|
|
public Panel MyReferencedElement{ get; set; }
|
|
public Panel MyReferencedMarkup{ get; set; }
|
|
public bool ShowFirstElement { get; set; } = true;
|
|
}
|