public void ChannelDataExtensions_IsIncreasing_Returns_If_ChannelSet_Is_Increasing_Correctly() { var log = new Witsml200.Log { Uuid = "uid", Citation = new Witsml200.ComponentSchemas.Citation(), Wellbore = new Witsml200.ComponentSchemas.DataObjectReference(), SchemaVersion = "2.0" }; var channelSet = _log20Generator.CreateChannelSet(log); channelSet = null; var isIncreasing = channelSet.IsIncreasing(); Assert.IsTrue(isIncreasing); // Create channel set channelSet = _log20Generator.CreateChannelSet(log); channelSet.Index.Add(_log20Generator.CreateMeasuredDepthIndex(Witsml200.ReferenceData.IndexDirection.decreasing)); isIncreasing = channelSet.IsIncreasing(); Assert.IsFalse(isIncreasing); channelSet.Index.Clear(); channelSet.Index.Add(_log20Generator.CreateMeasuredDepthIndex(Witsml200.ReferenceData.IndexDirection.increasing)); isIncreasing = channelSet.IsIncreasing(); Assert.IsTrue(isIncreasing); }