public void ReadParserConfig(byte chr, byte left, sbyte right, byte name, sbyte strand, sbyte summit, byte value, bool dropPeakIfInvalidValue, double defaultValue, PValueFormats pValueFormat) { // Arrange ParserConfig cols = new ParserConfig() { Chr = chr, Left = left, Right = right, Name = name, Strand = strand, Summit = summit, Value = value, DefaultValue = defaultValue, PValueFormat = pValueFormat, DropPeakIfInvalidValue = dropPeakIfInvalidValue, }; var path = Environment.CurrentDirectory + Path.DirectorySeparatorChar + "MSPCTests_" + new Random().NextDouble().ToString(); using (StreamWriter w = new StreamWriter(path)) w.WriteLine(JsonConvert.SerializeObject(cols)); // Act ParserConfig parsedCols = ParserConfig.LoadFromJSON(path); File.Delete(path); // Assert Assert.True(parsedCols.Equals(cols)); }
public void DoesNotEqualToANullObject() { // Arrange var config = new ParserConfig(); // Act & Assert Assert.True(!config.Equals(null)); }