From 2a1cd4fda8a4a8e649910d16b4dfa1ce7ae63543 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Fri, 12 May 2023 09:24:40 +0800 Subject: *misc --- .../tests/CsvHelper.Tests/Mocks/ReaderRowMock.cs | 226 +++++++++++++++++++++ 1 file changed, 226 insertions(+) create mode 100644 ThirdParty/CsvHelper-master/tests/CsvHelper.Tests/Mocks/ReaderRowMock.cs (limited to 'ThirdParty/CsvHelper-master/tests/CsvHelper.Tests/Mocks/ReaderRowMock.cs') diff --git a/ThirdParty/CsvHelper-master/tests/CsvHelper.Tests/Mocks/ReaderRowMock.cs b/ThirdParty/CsvHelper-master/tests/CsvHelper.Tests/Mocks/ReaderRowMock.cs new file mode 100644 index 0000000..b73c81e --- /dev/null +++ b/ThirdParty/CsvHelper-master/tests/CsvHelper.Tests/Mocks/ReaderRowMock.cs @@ -0,0 +1,226 @@ +// Copyright 2009-2022 Josh Close +// This file is a part of CsvHelper and is dual licensed under MS-PL and Apache 2.0. +// See LICENSE.txt for details or visit http://www.opensource.org/licenses/ms-pl.html for MS-PL and http://opensource.org/licenses/Apache-2.0 for Apache 2.0. +// https://github.com/JoshClose/CsvHelper +using CsvHelper.Configuration; +using CsvHelper.TypeConversion; +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CsvHelper.Tests.Mocks +{ + public class ReaderRowMock : IReaderRow + { + public string this[int index] => throw new NotImplementedException(); + + public string this[string name] => throw new NotImplementedException(); + + public string this[string name, int index] => throw new NotImplementedException(); + + public int ColumnCount => throw new NotImplementedException(); + + public int CurrentIndex => throw new NotImplementedException(); + + public string[] HeaderRecord => throw new NotImplementedException(); + + public IParser Parser => throw new NotImplementedException(); + + public CsvContext Context => throw new NotImplementedException(); + + public IReaderConfiguration Configuration { get; private set; } + + public ReaderRowMock() + { + Configuration = new CsvConfiguration(CultureInfo.InvariantCulture); + } + + public ReaderRowMock(CsvConfiguration configuration) + { + Configuration = configuration; + } + + public string GetField(int index) + { + throw new NotImplementedException(); + } + + public string GetField(string name) + { + throw new NotImplementedException(); + } + + public string GetField(string name, int index) + { + throw new NotImplementedException(); + } + + public object GetField(Type type, int index) + { + throw new NotImplementedException(); + } + + public object GetField(Type type, string name) + { + throw new NotImplementedException(); + } + + public object GetField(Type type, string name, int index) + { + throw new NotImplementedException(); + } + + public object GetField(Type type, int index, ITypeConverter converter) + { + throw new NotImplementedException(); + } + + public object GetField(Type type, string name, ITypeConverter converter) + { + throw new NotImplementedException(); + } + + public object GetField(Type type, string name, int index, ITypeConverter converter) + { + throw new NotImplementedException(); + } + + public T GetField(int index) + { + throw new NotImplementedException(); + } + + public T GetField(string name) + { + throw new NotImplementedException(); + } + + public T GetField(string name, int index) + { + throw new NotImplementedException(); + } + + public T GetField(int index, ITypeConverter converter) + { + throw new NotImplementedException(); + } + + public T GetField(string name, ITypeConverter converter) + { + throw new NotImplementedException(); + } + + public T GetField(string name, int index, ITypeConverter converter) + { + throw new NotImplementedException(); + } + + public T GetField(int index) where TConverter : ITypeConverter + { + throw new NotImplementedException(); + } + + public T GetField(string name) where TConverter : ITypeConverter + { + throw new NotImplementedException(); + } + + public T GetField(string name, int index) where TConverter : ITypeConverter + { + throw new NotImplementedException(); + } + + public T GetRecord() + { + throw new NotImplementedException(); + } + + public T GetRecord(T anonymousTypeDefinition) + { + throw new NotImplementedException(); + } + + public object GetRecord(Type type) + { + throw new NotImplementedException(); + } + + public bool TryGetField(Type type, int index, out object field) + { + throw new NotImplementedException(); + } + + public bool TryGetField(Type type, string name, out object field) + { + throw new NotImplementedException(); + } + + public bool TryGetField(Type type, string name, int index, out object field) + { + throw new NotImplementedException(); + } + + public bool TryGetField(Type type, int index, ITypeConverter converter, out object field) + { + throw new NotImplementedException(); + } + + public bool TryGetField(Type type, string name, ITypeConverter converter, out object field) + { + throw new NotImplementedException(); + } + + public bool TryGetField(Type type, string name, int index, ITypeConverter converter, out object field) + { + throw new NotImplementedException(); + } + + public bool TryGetField(int index, out T field) + { + throw new NotImplementedException(); + } + + public bool TryGetField(string name, out T field) + { + throw new NotImplementedException(); + } + + public bool TryGetField(string name, int index, out T field) + { + throw new NotImplementedException(); + } + + public bool TryGetField(int index, ITypeConverter converter, out T field) + { + throw new NotImplementedException(); + } + + public bool TryGetField(string name, ITypeConverter converter, out T field) + { + throw new NotImplementedException(); + } + + public bool TryGetField(string name, int index, ITypeConverter converter, out T field) + { + throw new NotImplementedException(); + } + + public bool TryGetField(int index, out T field) where TConverter : ITypeConverter + { + throw new NotImplementedException(); + } + + public bool TryGetField(string name, out T field) where TConverter : ITypeConverter + { + throw new NotImplementedException(); + } + + public bool TryGetField(string name, int index, out T field) where TConverter : ITypeConverter + { + throw new NotImplementedException(); + } + } +} -- cgit v1.1-26-g67d0