mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
Compare commits
107
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1359c52fc6 | ||
|
|
ce89e4c5fa | ||
|
|
9bd33ec5b6 | ||
|
|
63e8dc6ea1 | ||
|
|
e65bf00e22 | ||
|
|
8f0589ae81 | ||
|
|
ab20369d5f | ||
|
|
3a134a2d8c | ||
|
|
2e775c7e39 | ||
|
|
a9a4166431 | ||
|
|
feba66a6ce | ||
|
|
6fc6ca1e18 | ||
|
|
7332690826 | ||
|
|
b64faae88c | ||
|
|
b3b0613ad3 | ||
|
|
ddeba6e1ba | ||
|
|
0360f420fe | ||
|
|
2f18e7dd23 | ||
|
|
0f53cb275c | ||
|
|
c5cd0f1e7f | ||
|
|
44bf3d084e | ||
|
|
ceab9d932c | ||
|
|
104eeba2ea | ||
|
|
f0f0ae1564 | ||
|
|
2b469fb836 | ||
|
|
2a3c5024f2 | ||
|
|
ef5b3b4663 | ||
|
|
b070dc3279 | ||
|
|
b06c50f391 | ||
|
|
a228b7348f | ||
|
|
856d9754fb | ||
|
|
efce3b256a | ||
|
|
ce9bf964bf | ||
|
|
2cc0f9029a | ||
|
|
2e5b14333c | ||
|
|
bb8ffa5d1c | ||
|
|
e64491027f | ||
|
|
4d69127d9e | ||
|
|
97bdff44d4 | ||
|
|
636b05f1d1 | ||
|
|
362293581d | ||
|
|
2cffc7014c | ||
|
|
bec9f13d05 | ||
|
|
916b2cd1d9 | ||
|
|
f60a0a2e67 | ||
|
|
1d891bf6d1 | ||
|
|
a3fb0a1208 | ||
|
|
eade041bfd | ||
|
|
1ce0cc6e4e | ||
|
|
814e9dd0db | ||
|
|
d1679702e4 | ||
|
|
3f3b106aca | ||
|
|
ef1ea85c0f | ||
|
|
d711efdd90 | ||
|
|
fbbde0f0e5 | ||
|
|
363b5a4ed0 | ||
|
|
4c935964b2 | ||
|
|
304d785bd0 | ||
|
|
bba2a47492 | ||
|
|
191756c80e | ||
|
|
3f311d3fa7 | ||
|
|
698278fede | ||
|
|
0f1f991512 | ||
|
|
ce494e3d15 | ||
|
|
99db235197 | ||
|
|
dcbdec804d | ||
|
|
56195c0cb3 | ||
|
|
ec78654bdb | ||
|
|
451857ff95 | ||
|
|
0d76dd4248 | ||
|
|
bc67eb4139 | ||
|
|
5a5ab38c9e | ||
|
|
3334f96038 | ||
|
|
9f696f0eab | ||
|
|
9f86587ade | ||
|
|
863ab3cb16 | ||
|
|
fffff22781 | ||
|
|
b471ba0bde | ||
|
|
fa75f86286 | ||
|
|
53e475652a | ||
|
|
7e1e1886da | ||
|
|
7e85cfa5d2 | ||
|
|
7275c34093 | ||
|
|
36ede942c4 | ||
|
|
96a7f0fc74 | ||
|
|
df84d55865 | ||
|
|
439e5743ad | ||
|
|
35426a484e | ||
|
|
fd72712a83 | ||
|
|
581dc8b6de | ||
|
|
4667578662 | ||
|
|
5eed3a54c5 | ||
|
|
2ed1ec984f | ||
|
|
7202dd41f0 | ||
|
|
430bee0eb4 | ||
|
|
d973c18112 | ||
|
|
2e33a4b183 | ||
|
|
49a085551e | ||
|
|
6d810db4f0 | ||
|
|
6921674e5d | ||
|
|
2d88a94f98 | ||
|
|
a3943e28cf | ||
|
|
4a46fcfe2f | ||
|
|
8a2a062862 | ||
|
|
ab951a554d | ||
|
|
91c5e1f934 | ||
|
|
7a3c71413e |
No files matched your search
+75
-8
@@ -1,7 +1,7 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
#AC_PREREQ([2.62])
|
||||
|
||||
AC_INIT(mono, [5.7.0],
|
||||
AC_INIT(mono, [5.8.0],
|
||||
[http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono])
|
||||
|
||||
AC_CONFIG_SRCDIR([README.md])
|
||||
@@ -40,7 +40,7 @@ MONO_VERSION_BUILD=`echo $VERSION | cut -d . -f 3`
|
||||
# This can be reset to 0 when Mono's version number is bumped
|
||||
# since it's part of the corlib version (the prefix '1' in the full
|
||||
# version number is to ensure the number isn't treated as octal in C)
|
||||
MONO_CORLIB_COUNTER=1
|
||||
MONO_CORLIB_COUNTER=0
|
||||
MONO_CORLIB_VERSION=`printf "1%02d%02d%02d%03d" $MONO_VERSION_MAJOR $MONO_VERSION_MINOR 0 $MONO_CORLIB_COUNTER`
|
||||
|
||||
AC_DEFINE_UNQUOTED(MONO_CORLIB_VERSION,$MONO_CORLIB_VERSION,[Version of the corlib-runtime interface])
|
||||
@@ -554,6 +554,73 @@ AC_CHECK_FUNCS(_finite, , AC_MSG_CHECKING(for _finite in math.h)
|
||||
# for Linux statfs support
|
||||
AC_CHECK_HEADERS(linux/magic.h)
|
||||
|
||||
# For Android NDK unified headers
|
||||
if test x$platform_android = xyes; then
|
||||
AC_CHECK_HEADERS(machine/endian.h sys/endian.h)
|
||||
AC_CHECK_HEADERS(android/legacy_signal_inlines.h, [have_android_signal_inlines=yes], [have_android_signal_inlines=no])
|
||||
|
||||
# Make sure SIGRT{MIN,MAX} work - they will fail to work with unified headers if building for
|
||||
# API level < 21 *and* android/legacy_signal_inlines.h doesn't declare (and define) the required
|
||||
# libc APIs to obtain values for SIGRT{MIN,MAX}. We perform the check only if android/legacy_signal_inlines.h
|
||||
# is found because in other cases the macros will either work (for NDK < 14) or fail if the legacy header
|
||||
# doesn't contain the required definitions (NDK 14)
|
||||
if test x$have_android_signal_inlines = xyes; then
|
||||
AC_MSG_CHECKING([Whether Android SIGRTMIN/SGRTMAX macros are valid])
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([#include <android/legacy_signal_inlines.h>],[
|
||||
int i;
|
||||
for (i = SIGRTMIN + 1; i < SIGRTMAX; ++i) {
|
||||
}
|
||||
])],[
|
||||
AC_MSG_RESULT(yes)
|
||||
android_sigrtminmax_work=yes
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
android_sigrtminmax_work=no
|
||||
]
|
||||
)
|
||||
|
||||
if test x$android_sigrtminmax_work = xno; then
|
||||
AC_MSG_ERROR([Android SIGRTMIN/SIGRTMAX macros don't work in this NDK])
|
||||
fi
|
||||
fi
|
||||
|
||||
# Attempt to detect whether we're using Android NDK unified headers
|
||||
AC_CHECK_HEADERS(android/api-level.h, [have_android_api_level=yes], [have_android_api_level=no])
|
||||
AC_CHECK_HEADERS(android/versioning.h, [have_android_versioning=yes], [have_android_versioning=no])
|
||||
|
||||
android_unified_headers=no
|
||||
if test x$have_android_api_level = xyes; then
|
||||
if test x$have_android_versioning = xyes; then
|
||||
AC_MSG_CHECKING([whether using Android NDK unified headers])
|
||||
|
||||
# Both macros are defined only in the NDK unified headers
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([
|
||||
#include <android/api-level.h>
|
||||
#include <android/versioning.h>
|
||||
],[
|
||||
#if __ANDROID_API_O__ == 26 && defined(__INTRODUCED_IN)
|
||||
return 0
|
||||
#else
|
||||
#error __ANDROID_API_O__ != 26 or the __INTRODUCED_IN macro not defined
|
||||
#endif
|
||||
])],[
|
||||
AC_MSG_RESULT(yes)
|
||||
android_unified_headers=yes
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
android_unified_headers=no
|
||||
]
|
||||
)
|
||||
fi
|
||||
fi
|
||||
|
||||
if test x$android_unified_headers = xyes; then
|
||||
AC_DEFINE(ANDROID_UNIFIED_HEADERS, 1, [Whether Android NDK unified headers are used])
|
||||
fi
|
||||
fi # Android
|
||||
|
||||
# not 64 bit clean in cross-compile
|
||||
if test "x$enable_wasm" = "xyes"; then
|
||||
AC_DEFINE(SIZEOF_VOID_P,4)
|
||||
@@ -4278,22 +4345,22 @@ if test "x$enable_btls" = "xyes"; then
|
||||
btls_arch=aarch64
|
||||
;;
|
||||
android-armv5)
|
||||
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"armeabi\" -DANDROID_NATIVE_API_LEVEL=12"
|
||||
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"armeabi\" -DANDROID_NATIVE_API_LEVEL=14"
|
||||
;;
|
||||
android-armv6)
|
||||
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"armeabi\" -DANDROID_NATIVE_API_LEVEL=12"
|
||||
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"armeabi\" -DANDROID_NATIVE_API_LEVEL=14"
|
||||
;;
|
||||
android-armv7)
|
||||
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"armeabi-v7a\" -DANDROID_NATIVE_API_LEVEL=12"
|
||||
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"armeabi-v7a\" -DANDROID_NATIVE_API_LEVEL=14"
|
||||
;;
|
||||
android-v8a)
|
||||
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"arm64-v8a\" -DANDROID_NATIVE_API_LEVEL=12"
|
||||
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"arm64-v8a\" -DANDROID_NATIVE_API_LEVEL=21"
|
||||
;;
|
||||
android-x86)
|
||||
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"x86\" -DANDROID_NATIVE_API_LEVEL=12"
|
||||
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"x86\" -DANDROID_NATIVE_API_LEVEL=14"
|
||||
;;
|
||||
android-x64)
|
||||
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"x86_64\" -DANDROID_NATIVE_API_LEVEL=12"
|
||||
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"x86_64\" -DANDROID_NATIVE_API_LEVEL=21"
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR(Invalid BTLS platform)
|
||||
|
||||
Vendored
+1
-1
Submodule external/api-snapshot updated: 627333cae8...57f6b98047.
Vendored
+1
-1
Submodule external/cecil updated: bc11f47295...76ffcdabae.
Vendored
+1
-1
Submodule external/linker updated: 99354bf5c1...404f7316f9.
Vendored
+1
-1
Submodule external/nuget-buildtasks updated: 9e04cc7f41...b2c30bc81b.
Vendored
+1
-1
Submodule external/roslyn-binaries updated: 1904c7d068...e484c75e2e.
@@ -7,6 +7,7 @@ SUBDIRS := build jay mcs class nunit24 ilasm tools tests errors docs packages
|
||||
basic_SUBDIRS := build jay class
|
||||
build_SUBDIRS := build class class/aot-compiler tools ilasm
|
||||
monodroid_SUBDIRS := build class
|
||||
monodroid_tools_SUBDIRS := build class tools
|
||||
monotouch_SUBDIRS := build class
|
||||
monotouch_watch_SUBDIRS := build class
|
||||
monotouch_tv_SUBDIRS := build class
|
||||
@@ -66,6 +67,7 @@ $(_boot_:%=profile-do--xbuild_12--%): profile-do--xbuild_12--%:
|
||||
$(_boot_:%=profile-do--binary_reference_assemblies--%): profile-do--binary_reference_assemblies--%: profile-do--build--%
|
||||
$(_boot_:%=profile-do--net_4_x--%): profile-do--net_4_x--%: profile-do--build--%
|
||||
$(_boot_:%=profile-do--monodroid--%): profile-do--monodroid--%: profile-do--build--%
|
||||
$(_boot_:%=profile-do--monodroid_tools--%): profile-do--monodroid_tools--%: profile-do--build--%
|
||||
$(_boot_:%=profile-do--monotouch--%): profile-do--monotouch--%: profile-do--build--%
|
||||
$(_boot_:%=profile-do--monotouch_watch--%): profile-do--monotouch_watch--%: profile-do--build--%
|
||||
$(_boot_:%=profile-do--monotouch_tv--%): profile-do--monotouch_tv--%: profile-do--build--%
|
||||
|
||||
@@ -42,8 +42,16 @@ executable_CLEAN_FILES += $(build_lib) $(build_lib).so $(build_lib).mdb $(build_
|
||||
|
||||
makefrag = $(depsdir)/$(PROFILE)_$(base_prog).makefrag
|
||||
|
||||
ifdef TARGET_NET_REFERENCE
|
||||
# System.*.dll references come from the TARGET_NET_REFERENCE dir, others from the profile dir
|
||||
LIB_REFS_MONO = $(call _FILTER_OUT,System,$(LIB_REFS))
|
||||
LIB_REFS_SYSTEM = $(filter-out $(LIB_REFS_MONO),$(LIB_REFS))
|
||||
|
||||
MCS_REFERENCES = $(patsubst %,-r:$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/%.dll,$(LIB_REFS_SYSTEM))
|
||||
MCS_REFERENCES += $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS_MONO))
|
||||
else
|
||||
MCS_REFERENCES = $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS))
|
||||
MCS_REFERENCES += $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.exe,$(EXE_REFS))
|
||||
endif
|
||||
|
||||
ifdef KEYFILE
|
||||
LIB_MCS_FLAGS += /keyfile:$(KEYFILE)
|
||||
|
||||
+15
-2
@@ -18,13 +18,26 @@
|
||||
# Have to rename to handle differences between assembly/directory names
|
||||
DEP_LIBS=$(patsubst System.Xml,System.XML,$(LIB_REFS))
|
||||
|
||||
_FILTER_OUT = $(foreach x,$(2),$(if $(findstring $(1),$(x)),,$(x)))
|
||||
|
||||
LIB_REFS_FULL = $(call _FILTER_OUT,=, $(LIB_REFS))
|
||||
LIB_REFS_ALIAS = $(filter-out $(LIB_REFS_FULL),$(LIB_REFS))
|
||||
|
||||
ifdef TARGET_NET_REFERENCE
|
||||
# System.*.dll references come from the TARGET_NET_REFERENCE dir, others from the profile dir
|
||||
LIB_REFS_MONO_FULL = $(call _FILTER_OUT,System,$(LIB_REFS_FULL))
|
||||
LIB_REFS_MONO_ALIAS = $(call _FILTER_OUT,System,$(LIB_REFS_ALIAS))
|
||||
|
||||
LIB_REFS_SYSTEM_FULL = $(filter-out $(LIB_REFS_MONO_FULL),$(LIB_REFS_FULL))
|
||||
LIB_REFS_SYSTEM_ALIAS = $(filter-out $(LIB_REFS_MONO_ALIAS),$(LIB_REFS_ALIAS))
|
||||
|
||||
LIB_MCS_FLAGS += $(patsubst %,-r:$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/%.dll,$(LIB_REFS_SYSTEM_FULL))
|
||||
LIB_MCS_FLAGS += $(patsubst %,-r:%.dll, $(subst =,=$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/,$(LIB_REFS_SYSTEM_ALIAS)))
|
||||
|
||||
LIB_MCS_FLAGS += $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS_MONO_FULL))
|
||||
LIB_MCS_FLAGS += $(patsubst %,-r:%.dll, $(subst =,=$(topdir)/class/lib/$(PROFILE_DIRECTORY)/,$(LIB_REFS_MONO_ALIAS)))
|
||||
else
|
||||
LIB_MCS_FLAGS += $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS_FULL))
|
||||
LIB_MCS_FLAGS += $(patsubst %,-r:%.dll, $(subst =,=$(topdir)/class/lib/$(PROFILE_DIRECTORY)/,$(LIB_REFS_ALIAS)))
|
||||
endif
|
||||
|
||||
ifdef KEYFILE
|
||||
KEYFILE_MCS_FLAGS += /keyfile:$(KEYFILE)
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# -*- makefile -*-
|
||||
|
||||
BOOTSTRAP_PROFILE = build
|
||||
|
||||
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_CSC)
|
||||
MCS = $(BOOTSTRAP_MCS)
|
||||
|
||||
profile-check:
|
||||
@:
|
||||
|
||||
TARGET_NET_REFERENCE = v4.6
|
||||
DEFAULT_REFERENCES = -r:$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/mscorlib.dll
|
||||
|
||||
PROFILE_MCS_FLAGS = -d:NET_4_6 -d:MONO -d:WIN_PLATFORM -nowarn:1699 -nostdlib $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
|
||||
|
||||
FRAMEWORK_VERSION = 4.5
|
||||
|
||||
NO_INSTALL = yes
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
empty :=
|
||||
space := $(empty) $(empty)
|
||||
_FILTER_OUT = $(foreach x,$(2),$(if $(findstring $(1),$(x)),,$(x)))
|
||||
|
||||
# given $(thisdir), we compute the path to the top directory
|
||||
#
|
||||
|
||||
@@ -72,8 +72,6 @@ ifndef HAVE_CS_TESTS
|
||||
HAVE_CS_TESTS := $(wildcard $(test_sourcefile))
|
||||
endif
|
||||
|
||||
HAVE_SOURCE_EXCLUDES := $(wildcard $(test_sourcefile_excludes))
|
||||
|
||||
HAVE_CS_XTESTS := $(wildcard $(xtest_sourcefile))
|
||||
|
||||
endif # !NO_TEST
|
||||
@@ -173,7 +171,7 @@ test_response_preprocessed = $(test_response)_preprocessed
|
||||
|
||||
# This handles .excludes/.sources pairs, as well as resolving the
|
||||
# includes that occur in .sources files
|
||||
$(test_response_preprocessed): $(test_sourcefile)
|
||||
$(test_response_preprocessed): $(test_sourcefile) $(wildcard $(test_sourcefile_excludes))
|
||||
$(SHELL) $(topdir)/build/gensources.sh $@ '$(test_sourcefile)' '$(test_sourcefile_excludes)'
|
||||
|
||||
$(test_response): $(test_response_preprocessed)
|
||||
@@ -227,7 +225,7 @@ xtest_response_preprocessed = $(xtest_response)_preprocessed
|
||||
|
||||
# This handles .excludes/.sources pairs, as well as resolving the
|
||||
# includes that occur in .sources files
|
||||
$(xtest_response): $(xtest_sourcefile)
|
||||
$(xtest_response): $(xtest_sourcefile) $(wildcard $(xtest_sourcefile_excludes))
|
||||
$(SHELL) $(topdir)/build/gensources.sh $@ '$(xtest_sourcefile)' '$(xtest_sourcefile_excludes)'
|
||||
|
||||
$(xtest_makefrag): $(xtest_response)
|
||||
|
||||
+7
-1
@@ -106,6 +106,11 @@ monodroid_dirs := \
|
||||
Mono.Posix \
|
||||
$(pcl_facade_dirs)
|
||||
|
||||
monodroid_tools_dirs := \
|
||||
Mono.Cecil \
|
||||
ICSharpCode.SharpZipLib \
|
||||
monodoc
|
||||
|
||||
monotouch_dirs := \
|
||||
$(mobile_common_dirs) \
|
||||
Mono.Simd \
|
||||
@@ -341,6 +346,7 @@ orbis_dirs := \
|
||||
$(pcl_facade_dirs)
|
||||
|
||||
monodroid_SUBDIRS := $(monodroid_dirs)
|
||||
monodroid_tools_SUBDIRS := $(monodroid_tools_dirs)
|
||||
monotouch_SUBDIRS := $(monotouch_dirs)
|
||||
monotouch_watch_SUBDIRS := $(monotouch_watch_dirs)
|
||||
monotouch_tv_SUBDIRS := $(monotouch_tv_dirs)
|
||||
@@ -362,7 +368,7 @@ unreal_SUBDIRS := $(unreal_dirs)
|
||||
|
||||
include ../build/rules.make
|
||||
|
||||
SUBDIRS = $(testing_aot_full_dirs) $(testing_aot_hybrid_dirs) $(monotouch_dirs) $(monodroid_dirs) $(xammac_dirs) $(net_4_x_dirs) $(net_4_x_parallel_dirs) $(xammac_net_4_5_SUBDIRS) $(unreal_dirs)
|
||||
SUBDIRS = $(testing_aot_full_dirs) $(testing_aot_hybrid_dirs) $(monotouch_dirs) $(monodroid_dirs) $(monodroid_tools_dirs) $(xammac_dirs) $(net_4_x_dirs) $(net_4_x_parallel_dirs) $(xammac_net_4_5_SUBDIRS) $(unreal_dirs)
|
||||
|
||||
DIST_ONLY_SUBDIRS = dlr aot-compiler reference-assemblies $(xbuild_4_0_dirs) Microsoft.NuGet.Build.Tasks
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !FULL_AOT_RUNTIME
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
using Mono.CSharp;
|
||||
@@ -75,4 +76,5 @@ namespace MonoTests.EvaluatorTest
|
||||
Assert.IsNull (res);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -25,7 +25,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !FULL_AOT_RUNTIME
|
||||
using NUnit.Framework;
|
||||
using Mono.CSharp;
|
||||
|
||||
@@ -41,4 +41,5 @@ namespace MonoTests.EvaluatorTest
|
||||
evaluator2.Run ("int i = 0;");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -25,7 +25,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !FULL_AOT_RUNTIME
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
using Mono.CSharp;
|
||||
@@ -203,3 +203,4 @@ namespace MonoTests.EvaluatorTest
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -25,7 +25,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !FULL_AOT_RUNTIME
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
using Mono.CSharp;
|
||||
@@ -132,4 +132,5 @@ namespace MonoTests.EvaluatorTest
|
||||
Evaluator.Run ("public class TestClass { private TestEnum _te; public string Get() { return _te.ToString(); } } public enum TestEnum { First, Second }");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -20,13 +20,24 @@ namespace MonoTests.Mono.Data.Sqlite {
|
||||
|
||||
[TestFixture]
|
||||
public class SqliteiOS82BugTests {
|
||||
readonly static string dbPath = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), "adodemo.db3");
|
||||
readonly static string connectionString = "Data Source=" + dbPath;
|
||||
static SqliteConnection cnn = new SqliteConnection (connectionString);
|
||||
string dbPath;
|
||||
string connectionString;
|
||||
SqliteConnection cnn;
|
||||
|
||||
[SetUp]
|
||||
public void Create()
|
||||
{
|
||||
dbPath = Path.GetTempFileName ();
|
||||
|
||||
// We want to start with a fresh db for each full run
|
||||
// The database is created on the first open()
|
||||
// but TempFile does create a file
|
||||
if (File.Exists (dbPath))
|
||||
File.Delete (dbPath);
|
||||
|
||||
connectionString = "Data Source=" + dbPath;
|
||||
cnn = new SqliteConnection (connectionString);
|
||||
|
||||
try {
|
||||
if(File.Exists(dbPath)) {
|
||||
cnn.Dispose();
|
||||
@@ -56,6 +67,13 @@ namespace MonoTests.Mono.Data.Sqlite {
|
||||
}
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown ()
|
||||
{
|
||||
if (File.Exists (dbPath))
|
||||
File.Delete (dbPath);
|
||||
}
|
||||
|
||||
// Ref: https://bugzilla.xamarin.com/show_bug.cgi?id=27864
|
||||
// As of iOS 8.2 Apple updated Sqlite and broke queries that used to work pre iOS 8.2 like the select command in this test
|
||||
// The pruppose of this test is to know when apple fixes this. Expected test behaivour is as follows.
|
||||
|
||||
@@ -16,9 +16,9 @@ namespace MonoTests.Mono.Data.Sqlite
|
||||
[TestFixture]
|
||||
public class SqliteCommandUnitTests
|
||||
{
|
||||
readonly static string _uri = Path.Combine (Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "SqliteTest.db");
|
||||
readonly static string _connectionString = "URI=file://" + _uri + ", version=3";
|
||||
static SqliteConnection _conn = new SqliteConnection (_connectionString);
|
||||
string _uri;
|
||||
string _connectionString;
|
||||
SqliteConnection _conn;
|
||||
readonly static string stringvalue = "my keyboard is better than yours : äöüß";
|
||||
|
||||
public SqliteCommandUnitTests()
|
||||
@@ -28,6 +28,10 @@ namespace MonoTests.Mono.Data.Sqlite
|
||||
[SetUp]
|
||||
public void Create()
|
||||
{
|
||||
_uri = Path.GetTempFileName ();
|
||||
_connectionString = "URI=file://" + _uri + ", version=3";
|
||||
_conn = new SqliteConnection (_connectionString);
|
||||
|
||||
try
|
||||
{
|
||||
if(File.Exists(_uri))
|
||||
@@ -65,6 +69,13 @@ namespace MonoTests.Mono.Data.Sqlite
|
||||
}
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown ()
|
||||
{
|
||||
if (File.Exists (_uri))
|
||||
File.Delete (_uri);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Select()
|
||||
{
|
||||
@@ -195,4 +206,4 @@ namespace MonoTests.Mono.Data.Sqlite
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,13 +37,33 @@ using NUnit.Framework;
|
||||
|
||||
namespace MonoTests.Mono.Data.Sqlite
|
||||
{
|
||||
[TestFixture]
|
||||
public class SqliteConnectionTest
|
||||
{
|
||||
readonly static string _uri = Path.Combine (Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "test.db");
|
||||
readonly static string _connectionString = "URI=file://" + _uri + ", version=3";
|
||||
SqliteConnection _conn = new SqliteConnection ();
|
||||
[TestFixture]
|
||||
public class SqliteConnectionTest
|
||||
{
|
||||
string _dataFolder;
|
||||
string _uri;
|
||||
string _connectionString;
|
||||
SqliteConnection _conn;
|
||||
|
||||
[SetUp]
|
||||
public void SetUp ()
|
||||
{
|
||||
_dataFolder = Path.GetTempFileName ();
|
||||
if (File.Exists (_dataFolder))
|
||||
File.Delete (_dataFolder);
|
||||
Directory.CreateDirectory (_dataFolder);
|
||||
|
||||
_uri = Path.Combine (_dataFolder, "test.db");
|
||||
_connectionString = "URI=file://" + _uri + ", version=3";
|
||||
_conn = new SqliteConnection ();
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TeatDown ()
|
||||
{
|
||||
if (Directory.Exists (_dataFolder))
|
||||
Directory.Delete (_dataFolder, true);
|
||||
}
|
||||
[Test]
|
||||
public void ReleaseDatabaseFileHandles ()
|
||||
{
|
||||
@@ -64,49 +84,49 @@ namespace MonoTests.Mono.Data.Sqlite
|
||||
File.Delete (_uri);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentNullException))]
|
||||
public void ConnectionStringTest_Null ()
|
||||
{
|
||||
_conn.ConnectionString = null;
|
||||
}
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentNullException))]
|
||||
public void ConnectionStringTest_Null ()
|
||||
{
|
||||
_conn.ConnectionString = null;
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (InvalidOperationException))]
|
||||
public void ConnectionStringTest_MustBeClosed ()
|
||||
{
|
||||
_conn.ConnectionString = _connectionString;
|
||||
try {
|
||||
_conn.Open ();
|
||||
_conn.ConnectionString = _connectionString;
|
||||
} finally {
|
||||
_conn.Close ();
|
||||
}
|
||||
}
|
||||
[Test]
|
||||
[ExpectedException (typeof (InvalidOperationException))]
|
||||
public void ConnectionStringTest_MustBeClosed ()
|
||||
{
|
||||
_conn.ConnectionString = _connectionString;
|
||||
try {
|
||||
_conn.Open ();
|
||||
_conn.ConnectionString = _connectionString;
|
||||
} finally {
|
||||
_conn.Close ();
|
||||
}
|
||||
}
|
||||
|
||||
// behavior has changed, I guess
|
||||
//[Test]
|
||||
[Ignore ("opening a connection should not create db! though, leave for now")]
|
||||
public void OpenTest ()
|
||||
{
|
||||
try {
|
||||
_conn.ConnectionString = _connectionString;
|
||||
_conn.Open ();
|
||||
Assert.AreEqual (ConnectionState.Open, _conn.State, "#1 not opened");
|
||||
_conn.Close ();
|
||||
// behavior has changed, I guess
|
||||
//[Test]
|
||||
[Ignore ("opening a connection should not create db! though, leave for now")]
|
||||
public void OpenTest ()
|
||||
{
|
||||
try {
|
||||
_conn.ConnectionString = _connectionString;
|
||||
_conn.Open ();
|
||||
Assert.AreEqual (ConnectionState.Open, _conn.State, "#1 not opened");
|
||||
_conn.Close ();
|
||||
|
||||
// negative test: try opening a non-existent file
|
||||
_conn.ConnectionString = "URI=file://abcdefgh.db, version=3";
|
||||
try {
|
||||
_conn.Open ();
|
||||
Assert.Fail ("#1 should have failed on opening a non-existent db");
|
||||
} catch (ArgumentException e) {Console.WriteLine (e);}
|
||||
|
||||
} finally {
|
||||
if (_conn != null && _conn.State != ConnectionState.Closed)
|
||||
_conn.Close ();
|
||||
}
|
||||
}
|
||||
// negative test: try opening a non-existent file
|
||||
_conn.ConnectionString = "URI=file://abcdefgh.db, version=3";
|
||||
try {
|
||||
_conn.Open ();
|
||||
Assert.Fail ("#1 should have failed on opening a non-existent db");
|
||||
} catch (ArgumentException e) {Console.WriteLine (e);}
|
||||
|
||||
} finally {
|
||||
if (_conn != null && _conn.State != ConnectionState.Closed)
|
||||
_conn.Close ();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,11 +15,26 @@ namespace MonoTests.Mono.Data.Sqlite
|
||||
[TestFixture]
|
||||
public class SqliteDataAdapterUnitTests
|
||||
{
|
||||
readonly static string _uri = "SqliteTest.db";
|
||||
readonly static string _connectionString = "URI=file://" + _uri + ", version=3";
|
||||
static SqliteConnection _conn = new SqliteConnection (_connectionString);
|
||||
string _uri;
|
||||
string _connectionString;
|
||||
SqliteConnection _conn;
|
||||
|
||||
static SqliteDataAdapter PrepareDataAdapter()
|
||||
[SetUp]
|
||||
public void SetUp ()
|
||||
{
|
||||
_uri = Path.GetTempFileName ();
|
||||
_connectionString = "URI=file://" + _uri + ", version=3";
|
||||
_conn = new SqliteConnection (_connectionString);
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown ()
|
||||
{
|
||||
if (File.Exists (_uri))
|
||||
File.Delete (_uri);
|
||||
}
|
||||
|
||||
SqliteDataAdapter PrepareDataAdapter()
|
||||
{
|
||||
SqliteCommand select = new SqliteCommand("SELECT t, f, i, b FROM t1",_conn);
|
||||
SqliteCommand update = new SqliteCommand("UPDATE t1 SET t = :textP, f = :floatP, i = :integerP, n=:blobP WHERE t = :textP ");
|
||||
|
||||
@@ -15,12 +15,23 @@ namespace MonoTests.Mono.Data.Sqlite
|
||||
[TestFixture]
|
||||
public class SqliteExceptionUnitTests
|
||||
{
|
||||
readonly static string _uri = "SqliteTest.db";
|
||||
readonly static string _connectionString = "URI=file://" + _uri + ", version=3";
|
||||
static SqliteConnection _conn = new SqliteConnection (_connectionString);
|
||||
static string _uri;
|
||||
static string _connectionString;
|
||||
SqliteConnection _conn;
|
||||
|
||||
public SqliteExceptionUnitTests()
|
||||
[SetUp]
|
||||
public void SetUp ()
|
||||
{
|
||||
_uri = Path.GetTempFileName ();
|
||||
_connectionString = "URI=file://" + _uri + ", version=3";
|
||||
_conn = new SqliteConnection (_connectionString);
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown ()
|
||||
{
|
||||
if (File.Exists (_uri))
|
||||
File.Delete (_uri);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -20,7 +20,20 @@ namespace MonoTests.Mono.Data.Sqlite
|
||||
[TestFixture]
|
||||
public class SqliteFunctionTest
|
||||
{
|
||||
readonly static string uri = Path.Combine (Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "test.db");
|
||||
string uri;
|
||||
|
||||
[SetUp]
|
||||
public void SetUp ()
|
||||
{
|
||||
uri = Path.GetTempFileName ();
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown ()
|
||||
{
|
||||
if (File.Exists (uri))
|
||||
File.Delete (uri);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void CollationTest()
|
||||
|
||||
@@ -15,14 +15,24 @@ namespace MonoTests.Mono.Data.Sqlite
|
||||
[TestFixture]
|
||||
public class SqliteParameterUnitTests
|
||||
{
|
||||
readonly static string _uri = "SqliteTest.db";
|
||||
readonly static string _connectionString = "URI=file://" + _uri + ", version=3";
|
||||
static SqliteConnection _conn = new SqliteConnection (_connectionString);
|
||||
string _uri;
|
||||
string _connectionString;
|
||||
SqliteConnection _conn;
|
||||
|
||||
public SqliteParameterUnitTests()
|
||||
[SetUp]
|
||||
public void SetUp ()
|
||||
{
|
||||
_uri = Path.GetTempFileName ();
|
||||
_connectionString = "URI=file://" + _uri + ", version=3";
|
||||
_conn = new SqliteConnection (_connectionString);
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown ()
|
||||
{
|
||||
if (File.Exists (_uri))
|
||||
File.Delete (_uri);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category ("NotWorking")]
|
||||
// fails randomly :)
|
||||
|
||||
@@ -43,24 +43,16 @@ namespace MonoTests.Mono.Data.Sqlite
|
||||
[SetUp]
|
||||
public void Setup ()
|
||||
{
|
||||
var dataFolder = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), "SqlTest");
|
||||
|
||||
_databasePath = Path.Combine (dataFolder, "database.db");
|
||||
|
||||
if (!Directory.Exists (dataFolder)) {
|
||||
Directory.CreateDirectory (dataFolder);
|
||||
}
|
||||
|
||||
_databasePath = Path.GetTempFileName ();
|
||||
File.Delete (_databasePath);
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown ()
|
||||
{
|
||||
try {
|
||||
if (File.Exists (_databasePath))
|
||||
File.Delete (_databasePath);
|
||||
} catch {
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
#include monodroid_Mono.Data.Sqlite_test.dll.new-exclude.sources
|
||||
@@ -1,2 +0,0 @@
|
||||
SqliteDataReaderTest.cs
|
||||
SqliteParameterUnitTests.cs
|
||||
@@ -1,12 +1,32 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Mono.Unix.Android
|
||||
{
|
||||
// Another version of this class is used by the Xamarin.Android test suite
|
||||
// It is here to keep the test code #ifdef free as much as possible
|
||||
public class TestHelper
|
||||
{
|
||||
static bool areRealTimeSignalsSafe;
|
||||
|
||||
static TestHelper ()
|
||||
{
|
||||
#if MONODROID
|
||||
var method = typeof (Mono.Unix.Native.NativeConvert).Assembly.GetType ("Mono.Unix.Android.AndroidUtils").GetMethod ("AreRealTimeSignalsSafe", BindingFlags.Public | BindingFlags.Static);
|
||||
areRealTimeSignalsSafe = (bool)method.Invoke (null, null);
|
||||
#else
|
||||
areRealTimeSignalsSafe = true;
|
||||
#endif
|
||||
}
|
||||
|
||||
public static bool CanUseRealTimeSignals ()
|
||||
{
|
||||
if (!areRealTimeSignalsSafe) {
|
||||
Assert.Ignore ("Real-time signals aren't supported on this Android architecture");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -176,6 +176,9 @@ namespace MonoTests.Mono.Unix.Native
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if MONODROID
|
||||
[ExpectedException (typeof (ArgumentOutOfRangeException))] // IPPROTO_TCP not supported
|
||||
#endif
|
||||
public void SockOptLinger ()
|
||||
{
|
||||
WithSockets (UnixAddressFamily.AF_INET, UnixSocketType.SOCK_STREAM, UnixSocketProtocol.IPPROTO_TCP, (so1, so2) => {
|
||||
@@ -347,6 +350,9 @@ namespace MonoTests.Mono.Unix.Native
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if MONODROID
|
||||
[ExpectedException (typeof (ArgumentOutOfRangeException))] // IPPROTO_UDP not supported
|
||||
#endif
|
||||
public void BindConnect ()
|
||||
{
|
||||
WithSockets (UnixAddressFamily.AF_INET, UnixSocketType.SOCK_DGRAM, UnixSocketProtocol.IPPROTO_UDP, (so1, so2) => {
|
||||
@@ -516,6 +522,9 @@ namespace MonoTests.Mono.Unix.Native
|
||||
|
||||
[Test]
|
||||
[Category ("NotOnMac")]
|
||||
#if MONODROID
|
||||
[ExpectedException (typeof (ArgumentOutOfRangeException))] // SOCK_NONBLOCK, SOCK_CLOEXEC not supported
|
||||
#endif
|
||||
public void Accept4 ()
|
||||
{
|
||||
WithSockets (UnixAddressFamily.AF_UNIX, UnixSocketType.SOCK_STREAM, 0, (so1, so2) => {
|
||||
@@ -553,6 +562,9 @@ namespace MonoTests.Mono.Unix.Native
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if MONODROID
|
||||
[ExpectedException (typeof (ArgumentOutOfRangeException))] // IPPROTO_UDP not supported
|
||||
#endif
|
||||
public void SendToRecvFrom ()
|
||||
{
|
||||
WithSockets (UnixAddressFamily.AF_INET, UnixSocketType.SOCK_DGRAM, UnixSocketProtocol.IPPROTO_UDP, (so1, so2) => {
|
||||
@@ -643,6 +655,9 @@ namespace MonoTests.Mono.Unix.Native
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if MONODROID
|
||||
[ExpectedException (typeof (ArgumentOutOfRangeException))] // IPPROTO_UDP not supported
|
||||
#endif
|
||||
public unsafe void SendMsgRecvMsgAddress ()
|
||||
{
|
||||
WithSockets (UnixAddressFamily.AF_INET, UnixSocketType.SOCK_DGRAM, UnixSocketProtocol.IPPROTO_UDP, (so1, so2) => {
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
#include monodroid_Mono.Posix_test.dll.new-exclude.sources
|
||||
Mono.Unix.Android/TestHelper.cs
|
||||
@@ -1,3 +0,0 @@
|
||||
Mono.Unix.Native/SocketTest.cs
|
||||
Mono.Unix/UnixEndPointTest.cs
|
||||
Mono.Unix/UnixListenerTest.cs
|
||||
@@ -1,3 +1,2 @@
|
||||
#include monodroid_Mono.Security_test.dll.build-failure-exclude.sources
|
||||
#include monodroid_Mono.Security_test.dll.new-exclude.sources
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
Mono.Security.Authenticode/AuthenticodeDeformatterTest.cs
|
||||
Mono.Security.Authenticode/SoftwarePublisherCertificateTest.cs
|
||||
Mono.Security/PKCS7Test.cs
|
||||
Mono.Security.X509.Extensions/AuthorityKeyIdentifierExtensionTest.cs
|
||||
Mono.Security.X509.Extensions/BasicConstraintsExtensionTest.cs
|
||||
Mono.Security.X509.Extensions/ExtendedKeyUsageExtensionTest.cs
|
||||
Mono.Security.X509.Extensions/KeyUsageExtensionTest.cs
|
||||
Mono.Security.X509.Extensions/SubjectAltNameExtensionTest.cs
|
||||
Mono.Security.X509.Extensions/SubjectKeyIdentifierExtensionTest.cs
|
||||
Mono.Security.X509/PKCS12Test.cs
|
||||
Mono.Security.X509/X501NameTest.cs
|
||||
Mono.Security.X509/X509CertificateTest.cs
|
||||
Mono.Security.X509/X509CrlTest.cs
|
||||
Mono.Security.X509/X520AttributesTest.cs
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
#include monodroid_System.ComponentModel.DataAnnotations_test.dll.new-exclude.sources
|
||||
../../System.Web.DynamicData/Test/Common/AssertExtensions.cs
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
System.ComponentModel.DataAnnotations/AssociatedMetadataTypeTypeDescriptionProviderTests.cs
|
||||
System.ComponentModel.DataAnnotations/CompareAttributeTest.cs
|
||||
System.ComponentModel.DataAnnotations/CreditCardAttributeTest.cs
|
||||
System.ComponentModel.DataAnnotations/EmailAddressAttributeTest.cs
|
||||
System.ComponentModel.DataAnnotations/FileExtensionsAttributeTest.cs
|
||||
System.ComponentModel.DataAnnotations/PhoneAttributeTest.cs
|
||||
-1
@@ -1 +0,0 @@
|
||||
#include System.ComponentModel.DataAnnotations_test.dll.sources
|
||||
@@ -61,11 +61,11 @@ System.Linq.Expressions/ExpressionTest_TypeIs.cs
|
||||
System.Linq.Expressions/ExpressionTest_UnaryPlus.cs
|
||||
System.Linq.Expressions/ExpressionTest_Utils.cs
|
||||
System.Threading/ReaderWriterLockSlimTest.cs
|
||||
../../corlib/Test/System.Security.Cryptography/HashAlgorithmTest.cs
|
||||
../../corlib/Test/System.Security.Cryptography/SHA1Test.cs
|
||||
../../corlib/Test/System.Security.Cryptography/SHA256Test.cs
|
||||
../../corlib/Test/System.Security.Cryptography/SHA384Test.cs
|
||||
../../corlib/Test/System.Security.Cryptography/SHA512Test.cs
|
||||
../../corlib/Test/System.Security.Cryptography/HashAlgorithmTestBase.cs
|
||||
../../corlib/Test/System.Security.Cryptography/SHA1TestBase.cs
|
||||
../../corlib/Test/System.Security.Cryptography/SHA256TestBase.cs
|
||||
../../corlib/Test/System.Security.Cryptography/SHA384TestBase.cs
|
||||
../../corlib/Test/System.Security.Cryptography/SHA512TestBase.cs
|
||||
System.Security.Cryptography/AesCryptoServiceProviderTest.cs
|
||||
System.Security.Cryptography/AesManagedTest.cs
|
||||
System.Security.Cryptography/CngAlgorithmTest.cs
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
public class AesManagedTest {
|
||||
|
||||
[Test]
|
||||
#if !MONOTOUCH
|
||||
#if !MONOTOUCH && !XAMMAC
|
||||
[ExpectedException (typeof (CryptographicException))]
|
||||
#endif
|
||||
public void CFB_NotAllowed ()
|
||||
@@ -61,7 +61,7 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if !MONOTOUCH
|
||||
#if !MONOTOUCH && !XAMMAC
|
||||
[ExpectedException (typeof (CryptographicException))]
|
||||
#endif
|
||||
public void OFB_NotAllowed ()
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
// same results (hence should run a common set of unit tests).
|
||||
|
||||
[TestFixture]
|
||||
public class SHA1CngTest : SHA1Test {
|
||||
public class SHA1CngTest : SHA1TestBase {
|
||||
|
||||
[SetUp]
|
||||
public override void SetUp ()
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
// same results (hence should run a common set of unit tests).
|
||||
|
||||
[TestFixture]
|
||||
public class SHA256CngTest : SHA256Test {
|
||||
public class SHA256CngTest : SHA256TestBase {
|
||||
|
||||
[SetUp]
|
||||
public override void SetUp ()
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
// same results (hence should run a common set of unit tests).
|
||||
|
||||
[TestFixture]
|
||||
public class SHA256CryptoServiceProviderTest : SHA256Test {
|
||||
public class SHA256CryptoServiceProviderTest : SHA256TestBase {
|
||||
|
||||
[SetUp]
|
||||
public override void SetUp ()
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
// same results (hence should run a common set of unit tests).
|
||||
|
||||
[TestFixture]
|
||||
public class SHA384CngTest : SHA384Test {
|
||||
public class SHA384CngTest : SHA384TestBase {
|
||||
|
||||
[SetUp]
|
||||
public override void SetUp ()
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
// same results (hence should run a common set of unit tests).
|
||||
|
||||
[TestFixture]
|
||||
public class SHA384CryptoServiceProviderTest : SHA384Test {
|
||||
public class SHA384CryptoServiceProviderTest : SHA384TestBase {
|
||||
|
||||
[SetUp]
|
||||
public override void SetUp ()
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
// same results (hence should run a common set of unit tests).
|
||||
|
||||
[TestFixture]
|
||||
public class SHA512CngTest : SHA512Test {
|
||||
public class SHA512CngTest : SHA512TestBase {
|
||||
|
||||
[SetUp]
|
||||
public override void SetUp ()
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
// same results (hence should run a common set of unit tests).
|
||||
|
||||
[TestFixture]
|
||||
public class SHA512CryptoServiceProviderTest : SHA512Test {
|
||||
public class SHA512CryptoServiceProviderTest : SHA512TestBase {
|
||||
|
||||
[SetUp]
|
||||
public override void SetUp ()
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
#include testing_aot_full_System.Core_test.dll.exclude.sources
|
||||
#include monodroid_System.Core_test.dll.new-exclude.sources
|
||||
@@ -1,5 +0,0 @@
|
||||
../../corlib/Test/System.Security.Cryptography/HashAlgorithmTest.cs
|
||||
../../corlib/Test/System.Security.Cryptography/SHA1Test.cs
|
||||
../../corlib/Test/System.Security.Cryptography/SHA256Test.cs
|
||||
../../corlib/Test/System.Security.Cryptography/SHA384Test.cs
|
||||
../../corlib/Test/System.Security.Cryptography/SHA512Test.cs
|
||||
+36
-28
@@ -36,22 +36,29 @@ namespace MonoTests.System.IO.Compression.FileSystem
|
||||
[TestFixture]
|
||||
public class ZipArchiveTests
|
||||
{
|
||||
string tmpFile;
|
||||
[SetUp]
|
||||
public void SetUp ()
|
||||
{
|
||||
tmpFile = Path.GetTempFileName ();
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void Dispose()
|
||||
{
|
||||
File.Delete ("foo.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipCreateFromDirectory()
|
||||
{
|
||||
if (File.Exists ("foo.zip"))
|
||||
File.Delete ("foo.zip");
|
||||
if (File.Exists (tmpFile))
|
||||
File.Delete (tmpFile);
|
||||
|
||||
ZipFile.CreateFromDirectory ("foo", "foo.zip");
|
||||
Assert.IsTrue(File.Exists("foo.zip"));
|
||||
ZipFile.CreateFromDirectory ("foo", tmpFile);
|
||||
Assert.IsTrue(File.Exists(tmpFile));
|
||||
|
||||
using (var archive = new ZipArchive (File.Open ("foo.zip", FileMode.Open),
|
||||
using (var archive = new ZipArchive (File.Open (tmpFile, FileMode.Open),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
Assert.IsNotNull (archive.GetEntry ("foo.txt"));
|
||||
@@ -65,14 +72,14 @@ namespace MonoTests.System.IO.Compression.FileSystem
|
||||
[Test]
|
||||
public void ZipCreateFromDirectoryIncludeBase()
|
||||
{
|
||||
if (File.Exists ("foo.zip"))
|
||||
File.Delete ("foo.zip");
|
||||
if (File.Exists (tmpFile))
|
||||
File.Delete (tmpFile);
|
||||
|
||||
ZipFile.CreateFromDirectory ("foo", "foo.zip", CompressionLevel.Fastest,
|
||||
ZipFile.CreateFromDirectory ("foo", tmpFile, CompressionLevel.Fastest,
|
||||
includeBaseDirectory: true);
|
||||
Assert.IsTrue (File.Exists ("foo.zip"));
|
||||
Assert.IsTrue (File.Exists (tmpFile));
|
||||
|
||||
using (var archive = new ZipArchive (File.Open ("foo.zip", FileMode.Open),
|
||||
using (var archive = new ZipArchive (File.Open (tmpFile, FileMode.Open),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
Assert.IsNotNull (archive.GetEntry ("foo/foo.txt"));
|
||||
@@ -86,34 +93,35 @@ namespace MonoTests.System.IO.Compression.FileSystem
|
||||
[Test]
|
||||
public void ZipExtractToDirectory()
|
||||
{
|
||||
if (Directory.Exists ("extract"))
|
||||
Directory.Delete ("extract", true);
|
||||
var extractDir = Path.Combine (Path.GetTempPath (), "extract");
|
||||
if (Directory.Exists (extractDir))
|
||||
Directory.Delete (extractDir, true);
|
||||
|
||||
if (File.Exists ("foo.zip"))
|
||||
File.Delete ("foo.zip");
|
||||
if (File.Exists (tmpFile))
|
||||
File.Delete (tmpFile);
|
||||
|
||||
ZipFile.CreateFromDirectory ("foo", "foo.zip");
|
||||
ZipFile.CreateFromDirectory ("foo", tmpFile);
|
||||
|
||||
ZipFile.ExtractToDirectory ("foo.zip", "extract");
|
||||
Assert.IsTrue(Directory.Exists ("extract"));
|
||||
ZipFile.ExtractToDirectory (tmpFile, extractDir);
|
||||
Assert.IsTrue(Directory.Exists (extractDir));
|
||||
|
||||
Assert.IsTrue (File.Exists ("extract/foo.txt"));
|
||||
Assert.IsTrue (File.Exists ("extract/bar.txt"));
|
||||
Assert.IsTrue (Directory.Exists ("extract/foobar"));
|
||||
Assert.IsTrue (File.Exists ("extract/foobar/foo.txt"));
|
||||
Assert.IsTrue (File.Exists ("extract/foobar/bar.txt"));
|
||||
Assert.IsTrue (File.Exists (Path.Combine (extractDir, "foo.txt")), Path.Combine (extractDir, "foo.txt"));
|
||||
Assert.IsTrue (File.Exists (Path.Combine (extractDir, "bar.txt")), Path.Combine (extractDir, "bar.txt"));
|
||||
Assert.IsTrue (Directory.Exists (Path.Combine (extractDir, "foobar")), Path.Combine (extractDir, "foobar"));
|
||||
Assert.IsTrue (File.Exists (Path.Combine (extractDir, "foobar", "foo.txt")), Path.Combine (extractDir, "foobar", "foo.txt"));
|
||||
Assert.IsTrue (File.Exists (Path.Combine (extractDir, "foobar", "bar.txt")), Path.Combine (extractDir, "foobar", "bar.txt"));
|
||||
|
||||
Directory.Delete ("extract", true);
|
||||
Directory.Delete (extractDir, true);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipCreateFromEntryChangeTimestamp()
|
||||
{
|
||||
if (File.Exists ("foo.zip"))
|
||||
File.Delete ("foo.zip");
|
||||
if (File.Exists (tmpFile))
|
||||
File.Delete (tmpFile);
|
||||
|
||||
var file = "foo/foo.txt";
|
||||
using (var archive = new ZipArchive(File.Open("foo.zip", FileMode.Create),
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Create),
|
||||
ZipArchiveMode.Update))
|
||||
{
|
||||
archive.CreateEntryFromFile(file, file);
|
||||
@@ -121,7 +129,7 @@ namespace MonoTests.System.IO.Compression.FileSystem
|
||||
|
||||
var date = File.GetLastWriteTimeUtc(file);
|
||||
|
||||
using (var archive = new ZipArchive (File.Open ("foo.zip", FileMode.Open),
|
||||
using (var archive = new ZipArchive (File.Open (tmpFile, FileMode.Open),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
var entry = archive.GetEntry (file);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//
|
||||
// ZipTests.cs
|
||||
// ZipTests.cs
|
||||
//
|
||||
// Author:
|
||||
// Joao Matos <[email protected]>
|
||||
@@ -48,8 +47,9 @@ namespace MonoTests.System.IO.Compression
|
||||
[Test]
|
||||
public void ZipGetEntryReadMode()
|
||||
{
|
||||
File.Copy("archive.zip", "test.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
var entry = archive.GetEntry("foo.txt");
|
||||
@@ -59,14 +59,15 @@ namespace MonoTests.System.IO.Compression
|
||||
Assert.IsNull(nullEntry);
|
||||
}
|
||||
|
||||
File.Delete ("test.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipGetEntryCreateMode()
|
||||
{
|
||||
File.Copy("archive.zip", "test.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Create))
|
||||
{
|
||||
try {
|
||||
@@ -78,14 +79,15 @@ namespace MonoTests.System.IO.Compression
|
||||
Assert.Fail();
|
||||
}
|
||||
|
||||
File.Delete ("test.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipGetEntryUpdateMode()
|
||||
{
|
||||
File.Copy("archive.zip", "test.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
var entry = archive.GetEntry("foo.txt");
|
||||
@@ -95,14 +97,15 @@ namespace MonoTests.System.IO.Compression
|
||||
Assert.IsNull(nullEntry);
|
||||
}
|
||||
|
||||
File.Delete ("test.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipGetEntryOpen()
|
||||
{
|
||||
File.Copy("archive.zip", "test.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
var entry = archive.GetEntry("foo.txt");
|
||||
@@ -111,15 +114,16 @@ namespace MonoTests.System.IO.Compression
|
||||
var foo = entry.Open();
|
||||
}
|
||||
|
||||
File.Delete ("test.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipOpenAndReopenEntry()
|
||||
{
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
try {
|
||||
File.Copy("archive.zip", "test.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Update))
|
||||
{
|
||||
var entry = archive.GetEntry("foo.txt");
|
||||
@@ -136,7 +140,7 @@ namespace MonoTests.System.IO.Compression
|
||||
Assert.Fail();
|
||||
}
|
||||
} finally {
|
||||
File.Delete ("test.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,8 +148,9 @@ namespace MonoTests.System.IO.Compression
|
||||
[Test]
|
||||
public void ZipOpenCloseAndReopenEntry()
|
||||
{
|
||||
File.Copy("archive.zip", "test.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Update))
|
||||
{
|
||||
var entry = archive.GetEntry("foo.txt");
|
||||
@@ -156,14 +161,15 @@ namespace MonoTests.System.IO.Compression
|
||||
stream = entry.Open();
|
||||
}
|
||||
|
||||
File.Delete ("test.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipGetEntryDeleteReadMode()
|
||||
{
|
||||
File.Copy("archive.zip", "delete.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("delete.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Update))
|
||||
{
|
||||
var entry = archive.GetEntry("foo.txt");
|
||||
@@ -172,21 +178,22 @@ namespace MonoTests.System.IO.Compression
|
||||
entry.Delete();
|
||||
}
|
||||
|
||||
using (var archive = new ZipArchive(File.Open("delete.zip", FileMode.Open),
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
var entry = archive.GetEntry("foo.txt");
|
||||
Assert.IsNull(entry);
|
||||
}
|
||||
|
||||
File.Delete ("delete.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipDeleteEntryCheckEntries()
|
||||
{
|
||||
File.Copy("archive.zip", "delete.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("delete.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Update))
|
||||
{
|
||||
var entry = archive.GetEntry("foo.txt");
|
||||
@@ -197,14 +204,15 @@ namespace MonoTests.System.IO.Compression
|
||||
Assert.IsNull(archive.Entries.FirstOrDefault(e => e == entry));
|
||||
}
|
||||
|
||||
File.Delete ("delete.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipGetEntryDeleteUpdateMode()
|
||||
{
|
||||
File.Copy("archive.zip", "delete.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("delete.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Update))
|
||||
{
|
||||
var entry = archive.GetEntry("foo.txt");
|
||||
@@ -213,20 +221,21 @@ namespace MonoTests.System.IO.Compression
|
||||
entry.Delete();
|
||||
}
|
||||
|
||||
using (var archive = new ZipArchive(File.Open("delete.zip", FileMode.Open),
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
var entry = archive.GetEntry("foo.txt");
|
||||
Assert.IsNull(entry);
|
||||
}
|
||||
|
||||
File.Delete ("delete.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipCreateArchive()
|
||||
{
|
||||
using (var archive = new ZipArchive(File.Open("create.zip", FileMode.Create),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Create),
|
||||
ZipArchiveMode.Create))
|
||||
{
|
||||
var dir = archive.CreateEntry("foobar/");
|
||||
@@ -239,7 +248,7 @@ namespace MonoTests.System.IO.Compression
|
||||
}
|
||||
}
|
||||
|
||||
using (var archive = new ZipArchive(File.Open("create.zip", FileMode.Open),
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
Assert.IsNotNull(archive.GetEntry("foobar/"));
|
||||
@@ -253,22 +262,23 @@ namespace MonoTests.System.IO.Compression
|
||||
Assert.AreEqual("foo", text);
|
||||
}
|
||||
|
||||
File.Delete ("create.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipEnumerateEntriesModifiedTime()
|
||||
{
|
||||
File.Copy("archive.zip", "test.zip", overwrite: true);
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
var date = DateTimeOffset.Now;
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Update))
|
||||
{
|
||||
var entry = archive.GetEntry("foo.txt");
|
||||
entry.LastWriteTime = date;
|
||||
}
|
||||
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
var entry = archive.GetEntry("foo.txt");
|
||||
@@ -278,25 +288,29 @@ namespace MonoTests.System.IO.Compression
|
||||
|
||||
}
|
||||
|
||||
File.Delete ("test.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipEnumerateArchiveDefaultLastWriteTime()
|
||||
{
|
||||
using (var archive = new ZipArchive(File.Open("test.nupkg", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("test.nupkg", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
var entry = archive.GetEntry("_rels/.rels");
|
||||
Assert.AreEqual(new DateTime(624511296000000000).Ticks, entry.LastWriteTime.Ticks);
|
||||
Assert.IsNotNull(entry);
|
||||
}
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
public void ZipGetArchiveEntryStreamLengthPosition(ZipArchiveMode mode)
|
||||
{
|
||||
File.Copy("test.nupkg", "test2.nupkg", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("test2.nupkg", FileMode.Open), mode))
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("test.nupkg", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite), mode))
|
||||
{
|
||||
var entry = archive.GetEntry("_rels/.rels");
|
||||
using (var stream = entry.Open())
|
||||
@@ -316,7 +330,7 @@ namespace MonoTests.System.IO.Compression
|
||||
}
|
||||
}
|
||||
}
|
||||
File.Delete ("test2.nupkg");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -334,8 +348,9 @@ namespace MonoTests.System.IO.Compression
|
||||
[Test]
|
||||
public void ZipEnumerateEntriesReadMode()
|
||||
{
|
||||
File.Copy("archive.zip", "test.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
var entries = archive.Entries;
|
||||
@@ -348,14 +363,15 @@ namespace MonoTests.System.IO.Compression
|
||||
Assert.AreEqual("foobar/foo.txt", entries[4].FullName);
|
||||
}
|
||||
|
||||
File.Delete ("test.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipWriteEntriesUpdateMode()
|
||||
{
|
||||
File.Copy("archive.zip", "test.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Update))
|
||||
{
|
||||
var foo = archive.GetEntry("foo.txt");
|
||||
@@ -366,7 +382,7 @@ namespace MonoTests.System.IO.Compression
|
||||
}
|
||||
}
|
||||
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
var foo = archive.GetEntry("foo.txt");
|
||||
@@ -378,7 +394,7 @@ namespace MonoTests.System.IO.Compression
|
||||
}
|
||||
}
|
||||
|
||||
File.Delete ("test.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -418,8 +434,9 @@ namespace MonoTests.System.IO.Compression
|
||||
[Test]
|
||||
public void ZipWriteEntriesUpdateModeNonZeroPosition()
|
||||
{
|
||||
File.Copy("archive.zip", "test.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Update))
|
||||
{
|
||||
var foo = archive.GetEntry("foo.txt");
|
||||
@@ -433,7 +450,7 @@ namespace MonoTests.System.IO.Compression
|
||||
}
|
||||
}
|
||||
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
var entries = archive.Entries;
|
||||
@@ -446,14 +463,15 @@ namespace MonoTests.System.IO.Compression
|
||||
}
|
||||
}
|
||||
|
||||
File.Delete ("test.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipEnumerateEntriesUpdateMode()
|
||||
{
|
||||
File.Copy("archive.zip", "test.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open, FileAccess.ReadWrite),
|
||||
ZipArchiveMode.Read))
|
||||
{
|
||||
var entries = archive.Entries;
|
||||
@@ -466,14 +484,15 @@ namespace MonoTests.System.IO.Compression
|
||||
Assert.AreEqual("foobar/foo.txt", entries[4].FullName);
|
||||
}
|
||||
|
||||
File.Delete ("test.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipEnumerateEntriesCreateMode()
|
||||
{
|
||||
File.Copy("archive.zip", "test.zip", overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open("test.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("archive.zip", tmpFile, overwrite: true);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open),
|
||||
ZipArchiveMode.Create))
|
||||
{
|
||||
try {
|
||||
@@ -485,18 +504,19 @@ namespace MonoTests.System.IO.Compression
|
||||
Assert.Fail();
|
||||
}
|
||||
|
||||
File.Delete ("test.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipUpdateEmptyArchive()
|
||||
{
|
||||
File.WriteAllText("empty.zip", string.Empty);
|
||||
using (var archive = new ZipArchive(File.Open("empty.zip", FileMode.Open),
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.WriteAllText(tmpFile, string.Empty);
|
||||
using (var archive = new ZipArchive(File.Open(tmpFile, FileMode.Open),
|
||||
ZipArchiveMode.Update))
|
||||
{
|
||||
}
|
||||
File.Delete ("empty.zip");
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
class MyFakeStream : FileStream
|
||||
@@ -517,21 +537,28 @@ namespace MonoTests.System.IO.Compression
|
||||
[Test]
|
||||
public void ZipReadNonSeekableStream()
|
||||
{
|
||||
var stream = new MyFakeStream("test.nupkg", FileMode.Open);
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("test.nupkg", tmpFile, overwrite: true);
|
||||
var stream = new MyFakeStream(tmpFile, FileMode.Open);
|
||||
using (var archive = new ZipArchive (stream, ZipArchiveMode.Read))
|
||||
{
|
||||
}
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ZipWriteNonSeekableStream() {
|
||||
var stream = new MyFakeStream( "test.nupkg", FileMode.Open );
|
||||
public void ZipWriteNonSeekableStream()
|
||||
{
|
||||
var tmpFile = Path.GetTempFileName ();
|
||||
File.Copy("test.nupkg", tmpFile, overwrite: true);
|
||||
var stream = new MyFakeStream(tmpFile, FileMode.Open );
|
||||
using ( var archive = new ZipArchive( stream, ZipArchiveMode.Create ) ) {
|
||||
var entry = archive.CreateEntry( "foo" );
|
||||
using ( var es = entry.Open() ) {
|
||||
es.Write( new byte[] { 4, 2 }, 0, 2 );
|
||||
}
|
||||
}
|
||||
File.Delete (tmpFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,7 @@ System.IdentityModel.Selectors/SamlSecurityTokenAuthenticatorTest.cs
|
||||
System.IdentityModel.Selectors/SecurityTokenRequirementTest.cs
|
||||
System.IdentityModel.Selectors/SecurityTokenResolverTest.cs
|
||||
System.IdentityModel.Selectors/TestEvaluationContext.cs
|
||||
System.IdentityModel.Selectors/X509CertificateValidatorTest.cs
|
||||
System.IdentityModel.Selectors/X509SecurityTokenAuthenticatorTest.cs
|
||||
System.IdentityModel.Selectors/X509SecurityTokenProviderTest.cs
|
||||
System.IdentityModel.Tokens/BootstrapContextTest.cs
|
||||
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
//
|
||||
// X509CertificateValidatorTest.cs
|
||||
//
|
||||
// Author:
|
||||
// Alexander Köplinger <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2017 Microsoft
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
using System;
|
||||
using System.IdentityModel.Selectors;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace MonoTests.System.IdentityModel.Selectors
|
||||
{
|
||||
[TestFixture]
|
||||
public class X509CertificateValidatorTest
|
||||
{
|
||||
[Test]
|
||||
public void ConstructorTest ()
|
||||
{
|
||||
Assert.NotNull (X509CertificateValidator.CreateChainTrustValidator (false, new X509ChainPolicy ()));
|
||||
Assert.NotNull (X509CertificateValidator.CreatePeerOrChainTrustValidator (false, new X509ChainPolicy ()));
|
||||
}
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
System.IdentityModel.Claims/ClaimSetTest.cs
|
||||
System.IdentityModel.Claims/ClaimTest.cs
|
||||
System.IdentityModel.Claims/ClaimTypesTest.cs
|
||||
System.IdentityModel.Claims/X509CertificateClaimSetTest.cs
|
||||
System.IdentityModel.Common/MySecurityTokenSerializer.cs
|
||||
System.IdentityModel.Policy/AuthorizationContextTest.cs
|
||||
System.IdentityModel.Selectors/CustomUserNameSecurityTokenAuthenticatorTest.cs
|
||||
System.IdentityModel.Selectors/RsaSecurityTokenAuthenticatorTest.cs
|
||||
System.IdentityModel.Selectors/SamlSecurityTokenAuthenticatorTest.cs
|
||||
System.IdentityModel.Selectors/SecurityTokenRequirementTest.cs
|
||||
System.IdentityModel.Selectors/SecurityTokenResolverTest.cs
|
||||
System.IdentityModel.Selectors/TestEvaluationContext.cs
|
||||
System.IdentityModel.Selectors/X509SecurityTokenAuthenticatorTest.cs
|
||||
System.IdentityModel.Selectors/X509SecurityTokenProviderTest.cs
|
||||
System.IdentityModel.Tokens/BootstrapContextTest.cs
|
||||
System.IdentityModel.Tokens/EncryptedKeyIdentifierClauseTest.cs
|
||||
System.IdentityModel.Tokens/InMemorySymmetricSecurityKeyTest.cs
|
||||
System.IdentityModel.Tokens/LocalIdKeyIdentifierClauseTest.cs
|
||||
System.IdentityModel.Tokens/SamlActionTest.cs
|
||||
System.IdentityModel.Tokens/SamlAssertionTest.cs
|
||||
System.IdentityModel.Tokens/SamlAttributeStatementTest.cs
|
||||
System.IdentityModel.Tokens/SamlAudienceRestrictionConditionTest.cs
|
||||
System.IdentityModel.Tokens/SamlAuthenticationStatementTest.cs
|
||||
System.IdentityModel.Tokens/SamlAuthorityBindingTest.cs
|
||||
System.IdentityModel.Tokens/SamlAuthorizationDecisionStatementTest.cs
|
||||
System.IdentityModel.Tokens/SamlConditionsTest.cs
|
||||
System.IdentityModel.Tokens/SamlConstantsTest.cs
|
||||
System.IdentityModel.Tokens/SamlEvidenceTest.cs
|
||||
System.IdentityModel.Tokens/SamlSubjectTest.cs
|
||||
System.IdentityModel.Tokens/SecurityAlgorithmsTest.cs
|
||||
System.IdentityModel.Tokens/SecurityKeyIdentifierTest.cs
|
||||
System.IdentityModel.Tokens/SecurityTokenTypesTest.cs
|
||||
System.IdentityModel.Tokens/UserNameSecurityTokenTest.cs
|
||||
System.IdentityModel.Tokens/X509AsymmetricSecurityKeyTest.cs
|
||||
System.IdentityModel.Tokens/X509IssuerSerialKeyIdentifierClauseTest.cs
|
||||
System.IdentityModel.Tokens/X509SecurityTokenTest.cs
|
||||
System.IdentityModel.Tokens/X509ThumbprintKeyIdentifierClauseTest.cs
|
||||
@@ -96,7 +96,7 @@ namespace System.Net.Http
|
||||
return timeout;
|
||||
}
|
||||
set {
|
||||
if (value != System.Threading.Timeout.InfiniteTimeSpan && (value <= TimeSpan.Zero || value.Ticks > int.MaxValue))
|
||||
if (value != System.Threading.Timeout.InfiniteTimeSpan && (value <= TimeSpan.Zero || value.TotalMilliseconds > int.MaxValue))
|
||||
throw new ArgumentOutOfRangeException ();
|
||||
|
||||
timeout = value;
|
||||
|
||||
@@ -334,6 +334,20 @@ namespace System.Net.Http
|
||||
return response;
|
||||
}
|
||||
|
||||
static bool MethodHasBody (HttpMethod method)
|
||||
{
|
||||
switch (method.Method) {
|
||||
case "HEAD":
|
||||
case "GET":
|
||||
case "MKCOL":
|
||||
case "CONNECT":
|
||||
case "TRACE":
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
protected async internal override Task<HttpResponseMessage> SendAsync (HttpRequestMessage request, CancellationToken cancellationToken)
|
||||
{
|
||||
if (disposed)
|
||||
@@ -378,7 +392,7 @@ namespace System.Net.Http
|
||||
using (var stream = await wrequest.GetRequestStreamAsync ().ConfigureAwait (false)) {
|
||||
await request.Content.CopyToAsync (stream).ConfigureAwait (false);
|
||||
}
|
||||
} else if (HttpMethod.Post.Equals (request.Method) || HttpMethod.Put.Equals (request.Method) || HttpMethod.Delete.Equals (request.Method)) {
|
||||
} else if (MethodHasBody (request.Method)) {
|
||||
// Explicitly set this to make sure we're sending a "Content-Length: 0" header.
|
||||
// This fixes the issue that's been reported on the forums:
|
||||
// http://forums.xamarin.com/discussion/17770/length-required-error-in-http-post-since-latest-release
|
||||
|
||||
@@ -316,7 +316,7 @@ namespace MonoTests.System.Net.Http
|
||||
}
|
||||
|
||||
try {
|
||||
client.Timeout = new TimeSpan(int.MaxValue + 1L);
|
||||
client.Timeout = TimeSpan.FromMilliseconds (int.MaxValue + 1L);
|
||||
Assert.Fail ("#3");
|
||||
} catch (ArgumentOutOfRangeException) {
|
||||
}
|
||||
|
||||
@@ -1,45 +1,15 @@
|
||||
Assembly/AssemblyInfo.cs
|
||||
#include common_System.Security.dll.sources
|
||||
corefx/SR.cs
|
||||
../../build/common/Consts.cs
|
||||
../../build/common/Locale.cs
|
||||
Mono.Security.Cryptography/ManagedProtection.cs
|
||||
Mono.Security.Cryptography/NativeDapiProtection.cs
|
||||
System.Security.Cryptography/CryptographicAttribute.cs
|
||||
System.Security.Cryptography/CryptographicAttributeCollection.cs
|
||||
System.Security.Cryptography/CryptographicAttributeEnumerator.cs
|
||||
System.Security.Cryptography/DataProtectionScope.cs
|
||||
System.Security.Cryptography/MemoryProtectionScope.cs
|
||||
System.Security.Cryptography/ProtectedData.cs
|
||||
System.Security.Cryptography/ProtectedMemory.cs
|
||||
System.Security.Cryptography.Pkcs/AlgorithmIdentifier.cs
|
||||
System.Security.Cryptography.Pkcs/ContentInfo.cs
|
||||
System.Security.Cryptography.Pkcs/EnvelopedCms.cs
|
||||
System.Security.Cryptography.Pkcs/KeyAgreeKeyChoice.cs
|
||||
System.Security.Cryptography.Pkcs/KeyAgreeRecipientInfo.cs
|
||||
System.Security.Cryptography.Pkcs/KeyTransRecipientInfo.cs
|
||||
System.Security.Cryptography.Pkcs/CmsRecipient.cs
|
||||
System.Security.Cryptography.Pkcs/CmsRecipientCollection.cs
|
||||
System.Security.Cryptography.Pkcs/CmsRecipientEnumerator.cs
|
||||
System.Security.Cryptography.Pkcs/CmsSigner.cs
|
||||
System.Security.Cryptography.Pkcs/Pkcs9Attribute.cs
|
||||
System.Security.Cryptography.Pkcs/Pkcs9ContentType.cs
|
||||
System.Security.Cryptography.Pkcs/Pkcs9DocumentDescription.cs
|
||||
System.Security.Cryptography.Pkcs/Pkcs9DocumentName.cs
|
||||
System.Security.Cryptography.Pkcs/Pkcs9MessageDigest.cs
|
||||
System.Security.Cryptography.Pkcs/Pkcs9SigningTime.cs
|
||||
System.Security.Cryptography.Pkcs/PublicKeyInfo.cs
|
||||
System.Security.Cryptography.Pkcs/RecipientInfo.cs
|
||||
System.Security.Cryptography.Pkcs/RecipientInfoCollection.cs
|
||||
System.Security.Cryptography.Pkcs/RecipientInfoEnumerator.cs
|
||||
System.Security.Cryptography.Pkcs/RecipientInfoType.cs
|
||||
System.Security.Cryptography.Pkcs/SignedCms.cs
|
||||
System.Security.Cryptography.Pkcs/SignerInfo.cs
|
||||
System.Security.Cryptography.Pkcs/SignerInfoCollection.cs
|
||||
System.Security.Cryptography.Pkcs/SignerInfoEnumerator.cs
|
||||
System.Security.Cryptography.Pkcs/SubjectIdentifier.cs
|
||||
System.Security.Cryptography.Pkcs/SubjectIdentifierOrKey.cs
|
||||
System.Security.Cryptography.Pkcs/SubjectIdentifierOrKeyType.cs
|
||||
System.Security.Cryptography.Pkcs/SubjectIdentifierType.cs
|
||||
../System.Core/System.Security.Cryptography.X509Certificates/RSACertificateExtensions.cs
|
||||
System.Security.Cryptography.X509Certificates/X509Certificate2UI.cs
|
||||
System.Security.Cryptography.X509Certificates/X509SelectionFlag.cs
|
||||
@@ -109,7 +79,6 @@ System.Security.Cryptography.Xml/SymmetricKeyWrap.cs
|
||||
../../../external/corefx/src/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/Transform.cs
|
||||
../../../external/corefx/src/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/TransformChain.cs
|
||||
../../../external/corefx/src/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/Utils.cs
|
||||
System.Security.Cryptography.Xml/X509IssuerSerial.cs
|
||||
../../../external/corefx/src/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/XmlDecryptionTransform.cs
|
||||
../../../external/corefx/src/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/XmlDsigBase64Transform.cs
|
||||
../../../external/corefx/src/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/XmlDsigC14NTransform.cs
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
@@ -291,4 +291,4 @@ namespace MonoTests.System.Security.Cryptography.Pkcs {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -27,7 +27,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
@@ -160,4 +160,4 @@ namespace MonoTests.System.Security.Cryptography.Pkcs {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
+2
-2
@@ -26,7 +26,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
@@ -236,4 +236,4 @@ namespace MonoTests.System.Security.Cryptography.Pkcs {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -26,6 +26,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
|
||||
using NUnit.Framework;
|
||||
@@ -452,4 +453,4 @@ namespace MonoTests.System.Security.Cryptography.Pkcs {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
+2
-2
@@ -25,7 +25,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
@@ -134,4 +134,4 @@ namespace MonoTests.System.Security.Cryptography.Pkcs {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -26,7 +26,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
@@ -102,4 +102,5 @@ namespace MonoTests.System.Security.Cryptography.Pkcs {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
+2
-2
@@ -26,7 +26,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
@@ -85,4 +85,4 @@ namespace MonoTests.System.Security.Cryptography.Pkcs {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
+2
-1
@@ -25,6 +25,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
|
||||
using NUnit.Framework;
|
||||
@@ -203,4 +204,4 @@ namespace MonoCasTests.System.Security.Cryptography.X509Certificates {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
+2
-2
@@ -25,7 +25,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
@@ -128,4 +128,4 @@ namespace MonoTests.System.Security.Cryptography.X509Certificates {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -6,6 +6,7 @@
|
||||
//
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
@@ -76,3 +77,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -8,6 +8,7 @@
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
// (C) 2004 Novell Inc.
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
@@ -190,3 +191,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
+2
-1
@@ -27,6 +27,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
@@ -51,4 +52,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -6,7 +6,7 @@
|
||||
//
|
||||
// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
@@ -295,3 +295,4 @@ namespace MonoTests.System.Security.Cryptography.Xml
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -6,6 +6,7 @@
|
||||
//
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
@@ -73,3 +74,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -6,6 +6,7 @@
|
||||
//
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
@@ -66,3 +67,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
+2
@@ -7,6 +7,7 @@
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
@@ -82,3 +83,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -7,6 +7,7 @@
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
@@ -192,3 +193,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -7,6 +7,7 @@
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
@@ -339,3 +340,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -6,6 +6,7 @@
|
||||
//
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
@@ -72,3 +73,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -7,6 +7,7 @@
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
// (C) 2004 Novell (http://www.novell.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
@@ -235,3 +236,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -7,6 +7,7 @@
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
@@ -80,3 +81,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -7,6 +7,7 @@
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
// Copyright (C) 2005, 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
@@ -212,3 +213,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -7,6 +7,7 @@
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
// Copyright (C) 2004-2005, 2008 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Globalization;
|
||||
@@ -1769,4 +1770,5 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
Assert.That (signatureMethodElement.Attributes["Algorithm"].Value, Is.EqualTo (algorithmName));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -6,6 +6,7 @@
|
||||
//
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
@@ -65,3 +66,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -25,6 +25,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
@@ -82,3 +83,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
+2
-2
@@ -25,7 +25,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
@@ -68,4 +68,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
+2
@@ -7,6 +7,7 @@
|
||||
// (C) 2002 Motus Technologies Inc. (http://www.motus.com)
|
||||
// (C) 2004 Novell (http://www.novell.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
@@ -179,3 +180,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
+2
@@ -9,6 +9,7 @@
|
||||
// (C) 2003 Aleksey Sanin ([email protected])
|
||||
// (C) 2004 Novell (http://www.novell.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
@@ -530,3 +531,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
+2
@@ -8,6 +8,7 @@
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
@@ -407,3 +408,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
"<e1 xmlns=\"http://www.ietf.org\" xmlns:w3c=\"http://www.w3.org\"><e3 xmlns=\"\" id=\"E3\" xml:space=\"preserve\"></e3></e1>";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
+2
@@ -6,6 +6,7 @@
|
||||
//
|
||||
// (C) 2004 Novell Inc.
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
@@ -143,3 +144,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
+2
@@ -18,6 +18,7 @@
|
||||
// This file is simply replaced C14N->ExcC14N, and then replaced expected
|
||||
// output XML. So, they are *not* from c14n specification.
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
|
||||
using System;
|
||||
@@ -594,4 +595,5 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
+2
-2
@@ -13,7 +13,7 @@
|
||||
// (C) 2004 Novell (http://www.novell.com)
|
||||
// (C) 2008 Gert Driesen
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
@@ -138,4 +138,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
+2
-1
@@ -7,7 +7,7 @@
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Security.Cryptography;
|
||||
@@ -291,3 +291,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
+3
@@ -8,6 +8,7 @@
|
||||
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
// (C) 2004 Novell (http://www.novell.com)
|
||||
//
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
@@ -286,3 +287,5 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
+2
-2
@@ -12,7 +12,7 @@
|
||||
// (C) 2004 Novell (http://www.novell.com)
|
||||
// (C) 2008 Gert Driesen
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
@@ -88,4 +88,4 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -26,7 +26,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
@@ -169,4 +169,4 @@ namespace MonoCasTests.System.Security.Cryptography {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -67,6 +67,7 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
ProtectUnprotect (notMuchEntropy, DataProtectionScope.LocalMachine);
|
||||
}
|
||||
|
||||
#if !MOBILE // System.PlatformNotSupportedException: Operation is not supported on this platform.
|
||||
[Test] // https://bugzilla.xamarin.com/show_bug.cgi?id=38933
|
||||
public void ProtectCurrentUserMultiThread ()
|
||||
{
|
||||
@@ -91,6 +92,7 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
foreach (var t in tasks) t.Start ();
|
||||
Task.WaitAll (tasks.ToArray ());
|
||||
}
|
||||
#endif
|
||||
|
||||
[Test]
|
||||
public void DataProtectionScope_All ()
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
@@ -165,4 +165,4 @@ namespace MonoCasTests.System.Security.Cryptography {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -7,7 +7,7 @@
|
||||
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
|
||||
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
|
||||
#if !MOBILE
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
@@ -140,4 +140,4 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
System.Security.Permissions/DataProtectionPermissionAttributeTest.cs
|
||||
+7
-2
@@ -57,10 +57,15 @@ namespace MonoTests.System.ServiceModel.Description
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (InvalidOperationException))]
|
||||
public void RejectTwoParametersWhenNotWrapped ()
|
||||
{
|
||||
new WebChannelFactory<IBogusService1> (new WebHttpBinding (), new Uri ("http://localhost:37564")).CreateChannel ();
|
||||
var factory = new WebChannelFactory<IBogusService1> (new WebHttpBinding (), new Uri ("http://localhost:37564"));
|
||||
|
||||
#if MOBILE
|
||||
factory.Endpoint.Behaviors.Add (new WebHttpBehavior ());
|
||||
#endif
|
||||
|
||||
Assert.Throws<InvalidOperationException> (() => factory.CreateChannel ());
|
||||
}
|
||||
|
||||
[ServiceContract]
|
||||
|
||||
@@ -0,0 +1,149 @@
|
||||
FeatureBased/Features.Contracts/AsyncCallTester.cs
|
||||
FeatureBased/Features.Contracts/FaultsTester.cs
|
||||
FeatureBased/Features.Serialization/AsyncCallTest.cs
|
||||
FeatureBased/Features.Serialization/AsyncPatternTester.cs
|
||||
FeatureBased/Features.Serialization/DataContractSerializerTest.cs
|
||||
FeatureBased/Features.Serialization/DualContractTester.cs
|
||||
FeatureBased/Features.Serialization/ExitProcessHelper.cs
|
||||
FeatureBased/Features.Serialization/FaultsTest.cs
|
||||
FeatureBased/Features.Serialization/KnownTypeTest.cs
|
||||
FeatureBased/Features.Serialization/MessageContractTest.cs
|
||||
FeatureBased/Features.Serialization/OperationContractTester.cs
|
||||
FeatureBased/Features.Serialization/PrimitiveTesterTest.cs
|
||||
FeatureBased/Features.Serialization/UntypedMessageTest.cs
|
||||
FeatureBased/TestFixtureBase.cs
|
||||
MetadataTests/BindingTestAssertions.cs
|
||||
MetadataTests/ExportTests.cs
|
||||
MetadataTests/ImportTests.cs
|
||||
MetadataTests/ImportTests_CreateMetadata.cs
|
||||
MetadataTests/ImportTests_LoadMetadata.cs
|
||||
MetadataTests/ImportTests_RoundTrip.cs
|
||||
MetadataTests/MetadataSamples.cs
|
||||
MetadataTests/MiscImportTests.cs
|
||||
MetadataTests/TestContext.cs
|
||||
System.ServiceModel.Channels/AsymmetricSecurityBindingElementTest.cs
|
||||
System.ServiceModel.Channels/BinaryMessageEncodingBindingElementTest.cs
|
||||
System.ServiceModel.Channels/BindingElementTest.cs
|
||||
System.ServiceModel.Channels/CalcSampleProxy.cs
|
||||
System.ServiceModel.Channels/CommunicationObjectTest.cs
|
||||
System.ServiceModel.Channels/ConnectionOrientedTransportBindingElementTest.cs
|
||||
System.ServiceModel.Channels/CustomBindingTest.cs
|
||||
System.ServiceModel.Channels/CustomPolicyConversionContext.cs
|
||||
System.ServiceModel.Channels/HandlerTransportBindingElement.cs
|
||||
System.ServiceModel.Channels/HttpTransportBindingElementTest.cs
|
||||
System.ServiceModel.Channels/HttpsTransportBindingElementTest.cs
|
||||
System.ServiceModel.Channels/InterceptorBindingElement.cs
|
||||
System.ServiceModel.Channels/LocalClientSecuritySettingsTest.cs
|
||||
System.ServiceModel.Channels/MessageBufferTest.cs
|
||||
System.ServiceModel.Channels/MessageEncoderTest.cs
|
||||
System.ServiceModel.Channels/MsmqBindingElementBaseTest.cs
|
||||
System.ServiceModel.Channels/MsmqTransportBindingElementTest.cs
|
||||
System.ServiceModel.Channels/NamedPipeTransportBindingElementTest.cs
|
||||
System.ServiceModel.Channels/OneWayBindingElementTest.cs
|
||||
System.ServiceModel.Channels/PeerTransportBindingElementTest.cs
|
||||
System.ServiceModel.Channels/ReplyChannelBase.cs
|
||||
System.ServiceModel.Channels/SecurityAssert.cs
|
||||
System.ServiceModel.Channels/SecurityBindingElementTest.cs
|
||||
System.ServiceModel.Channels/SslStreamSecurityBindingElementTest.cs
|
||||
System.ServiceModel.Channels/SymmetricSecurityBindingElementTest.cs
|
||||
System.ServiceModel.Channels/TcpTransportBindingElementTest.cs
|
||||
System.ServiceModel.Channels/TextMessageEncodingBindingElementTest.cs
|
||||
System.ServiceModel.Channels/TransactionFlowBindingElementTest.cs
|
||||
System.ServiceModel.Configuration/AddressHeaderCollectionElementTest.cs
|
||||
System.ServiceModel.Configuration/BasicHttpBindingElementTest.cs
|
||||
System.ServiceModel.Configuration/BehaviorsSectionTest.cs
|
||||
System.ServiceModel.Configuration/BindingsSectionTest.cs
|
||||
System.ServiceModel.Configuration/ChannelEndpointElementTest.cs
|
||||
System.ServiceModel.Configuration/CustomBindingElementTest.cs
|
||||
System.ServiceModel.Configuration/EndpointBehaviorElementTest.cs
|
||||
System.ServiceModel.Configuration/ExtensionsSectionTest.cs
|
||||
System.ServiceModel.Configuration/MetadataElementTest.cs
|
||||
System.ServiceModel.Configuration/MexBindingElementTest.cs
|
||||
System.ServiceModel.Configuration/NetNamedPipeBindingElementTest.cs
|
||||
System.ServiceModel.Configuration/NetPeerTcpBindingElementTest.cs
|
||||
System.ServiceModel.Configuration/NetTcpBindingElementTest.cs
|
||||
System.ServiceModel.Configuration/ServiceBehaviorElementTest.cs
|
||||
System.ServiceModel.Configuration/ServiceElementTest.cs
|
||||
System.ServiceModel.Configuration/ServiceModelConfigurationElementCollectionTest.cs
|
||||
System.ServiceModel.Configuration/ServiceModelSectionGroupTest.cs
|
||||
System.ServiceModel.Configuration/StandardBindingCollectionElementTest.cs
|
||||
System.ServiceModel.Configuration/StandardBindingElementCollectionTest.cs
|
||||
System.ServiceModel.Configuration/StandardBindingElementTest.cs
|
||||
System.ServiceModel.Configuration/StandardEndpointsSectionTest.cs
|
||||
System.ServiceModel.Configuration/UserBinding.cs
|
||||
System.ServiceModel.Description/ClientCredentialsTest.cs
|
||||
System.ServiceModel.Description/ContractDescriptionTest.cs
|
||||
System.ServiceModel.Description/MetadataExchangeBindingsTest.cs
|
||||
System.ServiceModel.Description/MetadataResolverTest.cs
|
||||
System.ServiceModel.Description/MetadataSetTest.cs
|
||||
System.ServiceModel.Description/ServiceAuthorizationBehaviorTest.cs
|
||||
System.ServiceModel.Description/ServiceContractGeneratorTest.cs
|
||||
System.ServiceModel.Description/ServiceCredentialsTest.cs
|
||||
System.ServiceModel.Description/ServiceDebugBehaviorTest.cs
|
||||
System.ServiceModel.Description/ServiceMetadataBehaviorTest.cs
|
||||
System.ServiceModel.Description/ServiceMetadataEndpointTest.cs
|
||||
System.ServiceModel.Description/ServiceThrottlingBehaviorTest.cs
|
||||
System.ServiceModel.Description/TypedMessageConverterTest.cs
|
||||
System.ServiceModel.Description/WsdlExporterTest.cs
|
||||
System.ServiceModel.Description/WsdlImporterTest.cs
|
||||
System.ServiceModel.Dispatcher/ActionFilterTest.cs
|
||||
System.ServiceModel.Dispatcher/Bug32886Test.cs
|
||||
System.ServiceModel.Dispatcher/Bug652331Test.cs
|
||||
System.ServiceModel.Dispatcher/Bug652331_2Test.cs
|
||||
System.ServiceModel.Dispatcher/ChannelDispatcherTest.cs
|
||||
System.ServiceModel.Dispatcher/DispatchOperationTest.cs
|
||||
System.ServiceModel.Dispatcher/DispatchRuntimeTest.cs
|
||||
System.ServiceModel.Dispatcher/EndpointAddressMessageFilterTest.cs
|
||||
System.ServiceModel.Dispatcher/EndpointDispatcherTest.cs
|
||||
System.ServiceModel.Dispatcher/ExceptionHandlerTest.cs
|
||||
System.ServiceModel.Dispatcher/FilterTableTest.cs
|
||||
System.ServiceModel.Dispatcher/InvalidBodyAccessExceptionTest.cs
|
||||
System.ServiceModel.Dispatcher/PrefixEndpointAddressMessageFilterTest.cs
|
||||
System.ServiceModel.Dispatcher/XPathMessageContextTest.cs
|
||||
System.ServiceModel.PeerResolvers/CustomPeerResolverServiceTest.cs
|
||||
System.ServiceModel.PeerResolvers/PeerResolverSerializationTest.cs
|
||||
System.ServiceModel.Security.Tokens/IssuedSecurityTokenParametersTest.cs
|
||||
System.ServiceModel.Security.Tokens/IssuedSecurityTokenProviderTest.cs
|
||||
System.ServiceModel.Security.Tokens/RsaSecurityTokenParametersTest.cs
|
||||
System.ServiceModel.Security.Tokens/SecureConversationSecurityTokenParametersTest.cs
|
||||
System.ServiceModel.Security.Tokens/SecurityContextSecurityTokenTest.cs
|
||||
System.ServiceModel.Security.Tokens/SecurityTokenParametersTest.cs
|
||||
System.ServiceModel.Security.Tokens/ServiceModelSecurityTokenTypesTest.cs
|
||||
System.ServiceModel.Security.Tokens/SslSecurityTokenParametersTest.cs
|
||||
System.ServiceModel.Security.Tokens/SspiSecurityTokenParametersTest.cs
|
||||
System.ServiceModel.Security.Tokens/UserNameSecurityTokenParametersTest.cs
|
||||
System.ServiceModel.Security.Tokens/WrappedKeySecurityTokenTest.cs
|
||||
System.ServiceModel.Security.Tokens/X509ListedCertificateValidator.cs
|
||||
System.ServiceModel.Security.Tokens/X509SecurityTokenParametersTest.cs
|
||||
System.ServiceModel.Security/ChannelProtectionRequirementsTest.cs
|
||||
System.ServiceModel.Security/SecurityAlgorithmSuiteTest.cs
|
||||
System.ServiceModel.Security/SecurityMessagePropertyTest.cs
|
||||
System.ServiceModel.Security/SecurityTokenSpeficicationTest.cs
|
||||
System.ServiceModel.Security/ServiceCredentialsSecurityTokenManagerTest.cs
|
||||
System.ServiceModel.Security/ServiceSecurityContextTest.cs
|
||||
System.ServiceModel.Security/SupportingTokenParametersTest.cs
|
||||
System.ServiceModel.Security/TransportSecurityBindingElementTest.cs
|
||||
System.ServiceModel.Security/WSSecurityTokenSerializerTest.cs
|
||||
System.ServiceModel/BasicHttpBindingTest.cs
|
||||
System.ServiceModel/CallbackBehaviorAttributeTest.cs
|
||||
System.ServiceModel/ChannelFactoryTest.cs
|
||||
System.ServiceModel/ChannelFactory_1Test.cs
|
||||
System.ServiceModel/ClientBaseTest.cs
|
||||
System.ServiceModel/ClientCredentialsSecurityTokenManagerTest.cs
|
||||
System.ServiceModel/EndpointAddress10Test.cs
|
||||
System.ServiceModel/EndpointAddressBuilderTest.cs
|
||||
System.ServiceModel/EndpointAddressTest.cs
|
||||
System.ServiceModel/EndpointIdentityTest.cs
|
||||
System.ServiceModel/IntegratedConnectionTest.cs
|
||||
System.ServiceModel/MessageSecurityVersionTest.cs
|
||||
System.ServiceModel/MsmqTransportSecurityTest.cs
|
||||
System.ServiceModel/NetMsmqBindingTest.cs
|
||||
System.ServiceModel/NetPeerTcpBindingTest.cs
|
||||
System.ServiceModel/NetTcpBindingTest.cs
|
||||
System.ServiceModel/OperationContextTest.cs
|
||||
System.ServiceModel/PeerNodeAddressTest.cs
|
||||
System.ServiceModel/ServiceHostBaseTest.cs
|
||||
System.ServiceModel/ServiceHostTest.cs
|
||||
System.ServiceModel/TransactionProtocolTest.cs
|
||||
System.ServiceModel/WSFederationHttpBindingTest.cs
|
||||
System.ServiceModel/WSHttpBindingTest.cs
|
||||
@@ -0,0 +1,7 @@
|
||||
System.Web.Services.Configuration/DiagnosticsElementTest.cs
|
||||
System.Web.Services.Configuration/ProtocolElementTest.cs
|
||||
System.Web.Services.Configuration/SoapEnvelopeProcessingElementTest.cs
|
||||
System.Web.Services.Configuration/SoapExtensionTypeElementTest.cs
|
||||
System.Web.Services.Configuration/TypeElementTest.cs
|
||||
System.Web.Services.Configuration/WsdlHelpGeneratorElementTest.cs
|
||||
System.Web.Services.Configuration/WsiProfilesElementTest.cs
|
||||
@@ -149,7 +149,7 @@ namespace Mono.AppleTls
|
||||
}
|
||||
|
||||
var result = trust.Evaluate ();
|
||||
if (result == SecTrustResult.Unspecified)
|
||||
if (result == SecTrustResult.Unspecified || result == SecTrustResult.Proceed)
|
||||
return true;
|
||||
|
||||
errors |= MonoSslPolicyErrors.RemoteCertificateChainErrors;
|
||||
|
||||
Loaded 100 of 248 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user