17 lines
No EOL
443 B
C#
17 lines
No EOL
443 B
C#
using JD.Serialization;
|
|
using IdGenerator = JD.Serialization.IdGenerator;
|
|
|
|
|
|
namespace TRecTests
|
|
{
|
|
public static class TestExtensions
|
|
{
|
|
public static Clip CreateAndAddClip(this Tape tape, System.Type type, uint trackId = 1)
|
|
{
|
|
var clip = Clip.Instantiate(type);
|
|
clip.Track = tape.GetOrCreateTrack<TapeTrack>(trackId);
|
|
tape.Clips.Add(clip);
|
|
return clip;
|
|
}
|
|
}
|
|
} |