RasmusBroborg / DotnetTimecode

Dotnet Timecode is a C# class library for working with SMPTE Timecodes defined by the Society of Motion Picture and Television Engineers in the SMPTE 12M specification.
MIT License
8 stars 6 forks source link

Implement Operator Overloading #12

Closed RasmusBroborg closed 2 years ago

RasmusBroborg commented 2 years ago

Ex:

// Arrange
Timecode tc1 = new Timecode("10:00:00:00", Framerate.fps24);
Timecode tc2 = new Timecode("01:00:00:00", Framerate.fps24);

// Act
Timecode result = tc1 - tc2;

// Assert
// tc3.ToString() should be "09:00:00:00"
// tc3 < tc1 should return true
// tc3 < tc2 should return false