Skip to content

Commit

Permalink
Merge pull request #100 from kmcclive/feature/#94-hevc-codec-tag
Browse files Browse the repository at this point in the history
#94 Added support for setting codec tags
  • Loading branch information
kmcclive authored Mar 8, 2021
2 parents 7b65b49 + 4730f2e commit 0127f85
Show file tree
Hide file tree
Showing 37 changed files with 2,435 additions and 490 deletions.
410 changes: 410 additions & 0 deletions Tricycle.IO.Tests/FileConfigManagerTests.cs

Large diffs are not rendered by default.

221 changes: 0 additions & 221 deletions Tricycle.IO.Tests/JsonConfigManagerTests.cs

This file was deleted.

69 changes: 69 additions & 0 deletions Tricycle.IO.Tests/JsonSerializerTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
using System;
using System.Runtime.Serialization;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Tricycle.IO.Tests
{
public class JsonSerializerTests
{
#region Nested Types

class MockObject
{
public int Value { get; set; }
}

#endregion

#region Fields

JsonSerializer _serializer;
MockObject _value = new MockObject()
{
Value = 2
};
string _json =
"{" + Environment.NewLine +
" \"value\": 2" + Environment.NewLine +
"}";

#endregion

#region Test Setup

[TestInitialize]
public void Setup()
{
_serializer = new JsonSerializer();
}

#endregion

#region Test Methods

[TestMethod]
public void SerializeReturnsJsonString()
{
var actual = _serializer.Serialize(_value);

Assert.AreEqual(_json, actual);
}

[TestMethod]
[ExpectedException(typeof(SerializationException))]
public void DeserializeThrowsSerializationException()
{
_serializer.Deserialize<MockObject>("{");
}

[TestMethod]
public void DeserializeReturnsObject()
{
var actual = _serializer.Deserialize<MockObject>(_json);

Assert.AreEqual(_value, actual);
}

#endregion
}
}
Loading

0 comments on commit 0127f85

Please sign in to comment.